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 # see https://nixos.org/nixpkgs/manual/#chap-conventions
22 # Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
23 [*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
26 # Match docbook files, set indent width of one
30 # Match json/lockfiles/markdown/nix/ruby files, set indent width of two
31 [*.{json,lock,md,nix,rb}]
34 # Match perl/python/shell scripts, set indent width of four
38 # Match gemfiles, set indent to spaces with width of two
43 # Disable file types or individual files
44 # some of these files may be auto-generated and/or require significant changes
47 insert_final_newline = unset
48 trim_trailing_whitespace = unset
51 insert_final_newline = unset
53 trim_trailing_whitespace = unset
58 # trailing whitespace is an actual syntax element of classic Markdown/
59 # CommonMark to enforce a line break
61 trim_trailing_whitespace = unset
66 insert_final_newline = unset
67 trim_trailing_whitespace = unset
71 trim_trailing_whitespace = unset
73 [nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
74 trim_trailing_whitespace = unset
76 [pkgs/build-support/dotnetenv/Wrapper/**]
79 insert_final_newline = unset
80 trim_trailing_whitespace = unset
82 [pkgs/development/compilers/elm/registry.dat]
84 insert_final_newline = unset
86 [pkgs/development/haskell-modules/hackage-packages.nix]
88 trim_trailing_whitespace = unset
90 [pkgs/servers/dict/wordnet_structures.py]
91 trim_trailing_whitespace = unset
93 [pkgs/tools/misc/timidity/timidity.cfg]
94 trim_trailing_whitespace = unset