Merge pull request #313600 from fabaff/nray-darwin
[NixPkgs.git] / .editorconfig
blob8d54e327b9f93ad1f7a206d595f1ede8d9897f76
1 # EditorConfig configuration for nixpkgs
2 # https://EditorConfig.org
4 # Top-most EditorConfig file
5 root = true
7 # Unix-style newlines with a newline ending every file, utf-8 charset
8 [*]
9 end_of_line = lf
10 insert_final_newline = true
11 trim_trailing_whitespace = true
12 charset = utf-8
14 # Ignore diffs/patches
15 [*.{diff,patch}]
16 end_of_line = unset
17 insert_final_newline = unset
18 trim_trailing_whitespace = unset
20 # We want readFile .version to return the version without a newline.
21 [.version]
22 insert_final_newline = false
24 # see https://nixos.org/nixpkgs/manual/#chap-conventions
26 # Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
27 [*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
28 indent_style = space
30 # Match docbook files, set indent width of one
31 [*.xml]
32 indent_size = 1
34 # Match json/lockfiles/markdown/nix/ruby files, set indent width of two
35 [*.{json,lock,md,nix,rb}]
36 indent_size = 2
38 # Match perl/python/shell scripts, set indent width of four
39 [*.{pl,pm,py,sh}]
40 indent_size = 4
42 # Match gemfiles, set indent to spaces with width of two
43 [Gemfile]
44 indent_size = 2
45 indent_style = space
47 # Disable file types or individual files
48 # some of these files may be auto-generated and/or require significant changes
50 [*.{c,h}]
51 insert_final_newline = unset
52 trim_trailing_whitespace = unset
54 [*.{asc,key,ovpn}]
55 insert_final_newline = unset
56 end_of_line = unset
57 trim_trailing_whitespace = unset
59 [*.lock]
60 indent_size = unset
62 # Although Markdown/CommonMark allows using two trailing spaces to denote
63 # a hard line break, we do not use that feature in nixpkgs since
64 # it forces the surrounding paragraph to become a <literallayout> which
65 # does not wrap reasonably.
66 # Instead of a hard line break, start a new paragraph by inserting a blank line.
67 [*.md]
68 trim_trailing_whitespace = true
70 # binaries
71 [*.nib]
72 end_of_line = unset
73 insert_final_newline = unset
74 trim_trailing_whitespace = unset
75 charset = unset
77 [eggs.nix]
78 trim_trailing_whitespace = unset
80 [nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
81 trim_trailing_whitespace = unset
83 [pkgs/build-support/dotnetenv/Wrapper/**]
84 end_of_line = unset
85 indent_style = unset
86 insert_final_newline = unset
87 trim_trailing_whitespace = unset
89 [pkgs/development/compilers/elm/registry.dat]
90 end_of_line = unset
91 insert_final_newline = unset
93 [pkgs/development/haskell-modules/hackage-packages.nix]
94 indent_style = unset
95 trim_trailing_whitespace = unset
97 [pkgs/misc/documentation-highlighter/**]
98 insert_final_newline = unset
100 [pkgs/servers/dict/wordnet_structures.py]
101 trim_trailing_whitespace = unset
103 [pkgs/tools/misc/timidity/timidity.cfg]
104 trim_trailing_whitespace = unset
106 [pkgs/tools/virtualization/ovftool/*.ova]
107 end_of_line = unset
108 insert_final_newline = unset
109 trim_trailing_whitespace = unset
110 charset = unset
112 [lib/tests/*.plist]
113 indent_style = tab
114 insert_final_newline = unset
116 [pkgs/kde/generated/**]
117 insert_final_newline = unset
118 end_of_line = unset