1 # EditorConfig configuration for nixpkgs
2 # https://EditorConfig.org
4 # Top-most EditorConfig file
7 # Unix-style newlines with a newline ending every file, utf-8 charset
10 insert_final_newline = true
11 trim_trailing_whitespace = true
14 # Ignore diffs/patches
17 insert_final_newline = unset
18 trim_trailing_whitespace = unset
20 # We want readFile .version to return the version without a newline.
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}]
30 # Match docbook files, set indent width of one
34 # Match json/lockfiles/markdown/nix/ruby files, set indent width of two
35 [*.{json,lock,md,nix,rb}]
38 # Match perl/python/shell scripts, set indent width of four
42 # Match gemfiles, set indent to spaces with width of two
47 # Disable file types or individual files
48 # some of these files may be auto-generated and/or require significant changes
51 insert_final_newline = unset
52 trim_trailing_whitespace = unset
55 insert_final_newline = unset
57 trim_trailing_whitespace = 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.
68 trim_trailing_whitespace = true
73 insert_final_newline = unset
74 trim_trailing_whitespace = unset
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/**]
86 insert_final_newline = unset
87 trim_trailing_whitespace = unset
89 [pkgs/development/compilers/elm/registry.dat]
91 insert_final_newline = unset
93 [pkgs/development/haskell-modules/hackage-packages.nix]
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]
108 insert_final_newline = unset
109 trim_trailing_whitespace = unset
114 insert_final_newline = unset
116 [pkgs/kde/generated/**]
117 insert_final_newline = unset