linuxManualConfig: don't leak rust-lib-src paths into the final binary
[NixPkgs.git] / .editorconfig
blob1d2259154e486e5033bfe1f9863d61aebd591ba6
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 # Match package.json, which are generally pulled from upstream and accept them as they are
48 [package.json]
49 indent_style = unset
51 # Disable file types or individual files
52 # some of these files may be auto-generated and/or require significant changes
54 [*.{c,h}]
55 insert_final_newline = unset
56 trim_trailing_whitespace = unset
58 [*.{asc,key,ovpn}]
59 insert_final_newline = unset
60 end_of_line = unset
61 trim_trailing_whitespace = unset
63 [*.lock]
64 indent_size = unset
66 # Although Markdown/CommonMark allows using two trailing spaces to denote
67 # a hard line break, we do not use that feature in nixpkgs since
68 # it forces the surrounding paragraph to become a <literallayout> which
69 # does not wrap reasonably.
70 # Instead of a hard line break, start a new paragraph by inserting a blank line.
71 [*.md]
72 trim_trailing_whitespace = true
74 # binaries
75 [*.nib]
76 end_of_line = unset
77 insert_final_newline = unset
78 trim_trailing_whitespace = unset
79 charset = unset
81 [eggs.nix]
82 trim_trailing_whitespace = unset
84 [nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
85 trim_trailing_whitespace = unset
87 [pkgs/build-support/dotnetenv/Wrapper/**]
88 end_of_line = unset
89 indent_style = unset
90 insert_final_newline = unset
91 trim_trailing_whitespace = unset
93 [pkgs/development/compilers/elm/registry.dat]
94 end_of_line = unset
95 insert_final_newline = unset
97 [pkgs/development/haskell-modules/hackage-packages.nix]
98 indent_style = unset
99 trim_trailing_whitespace = unset
101 [pkgs/misc/documentation-highlighter/**]
102 insert_final_newline = unset
104 [pkgs/servers/dict/wordnet_structures.py]
105 trim_trailing_whitespace = unset
107 [pkgs/tools/misc/timidity/timidity.cfg]
108 trim_trailing_whitespace = unset
110 [pkgs/tools/virtualization/ovftool/*.ova]
111 end_of_line = unset
112 insert_final_newline = unset
113 trim_trailing_whitespace = unset
114 charset = unset
116 [lib/tests/*.plist]
117 indent_style = tab
118 insert_final_newline = unset
120 [pkgs/kde/generated/**]
121 insert_final_newline = unset
122 end_of_line = unset