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 # Match package.json, which are generally pulled from upstream and accept them as they are
51 # Disable file types or individual files
52 # some of these files may be auto-generated and/or require significant changes
55 insert_final_newline = unset
56 trim_trailing_whitespace = unset
59 insert_final_newline = unset
61 trim_trailing_whitespace = 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.
72 trim_trailing_whitespace = true
77 insert_final_newline = unset
78 trim_trailing_whitespace = unset
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/**]
90 insert_final_newline = unset
91 trim_trailing_whitespace = unset
93 [pkgs/development/compilers/elm/registry.dat]
95 insert_final_newline = unset
97 [pkgs/development/haskell-modules/hackage-packages.nix]
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]
112 insert_final_newline = unset
113 trim_trailing_whitespace = unset
118 insert_final_newline = unset
120 [pkgs/kde/generated/**]
121 insert_final_newline = unset