pgformatter: 4.3 -> 4.4 (#96920)
[NixPkgs.git] / .editorconfig
blob43970edebe5c1946f0a6ebb83ab5f67ab4854c36
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 # 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}]
24 indent_style = space
26 # Match docbook files, set indent width of one
27 [*.xml]
28 indent_size = 1
30 # Match json/lockfiles/markdown/nix/ruby files, set indent width of two
31 [*.{json,lock,md,nix,rb}]
32 indent_size = 2
34 # Match perl/python/shell scripts, set indent width of four
35 [*.{pl,pm,py,sh}]
36 indent_size = 4
38 # Match gemfiles, set indent to spaces with width of two
39 [Gemfile]
40 indent_size = 2
41 indent_style = space
43 # Disable file types or individual files
44 # some of these files may be auto-generated and/or require significant changes
46 [*.{c,h}]
47 insert_final_newline = unset
48 trim_trailing_whitespace = unset
50 [*.{key,ovpn}]
51 insert_final_newline = unset
52 end_of_line = unset
54 [*.lock]
55 indent_size = unset
57 [deps.nix]
58 insert_final_newline = unset
60 [eggs.nix]
61 trim_trailing_whitespace = unset
63 [gemset.nix]
64 insert_final_newline = unset
66 [node-{composition,packages}.nix]
67 insert_final_newline = unset
69 [nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
70 trim_trailing_whitespace = unset
72 [nixos/tests/systemd-networkd-vrf.nix]
73 trim_trailing_whitespace = unset
75 [pkgs/applications/editors/emacs-modes/recipes-archive-melpa.json]
76 indent_size = unset
78 [pkgs/build-support/dotnetenv/Wrapper/**]
79 end_of_line = unset
80 insert_final_newline = unset
81 trim_trailing_whitespace = unset
83 [pkgs/build-support/upstream-updater/**]
84 trim_trailing_whitespace = unset
86 [pkgs/development/compilers/elm/registry.dat]
87 end_of_line = unset
88 insert_final_newline = unset
90 [pkgs/development/lisp-modules/quicklisp-to-nix.nix]
91 indent_size = unset
93 [pkgs/development/haskell-modules/hackage-packages.nix]
94 indent_style = unset
95 indent_size = unset
96 trim_trailing_whitespace = unset
98 [pkgs/development/mobile/androidenv/generated/{addons,packages}.nix]
99 trim_trailing_whitespace = unset
101 [pkgs/development/node-packages/node-packages.nix]
102 insert_final_newline = unset
104 [pkgs/servers/dict/wordnet_structures.py]
105 indent_size = unset
106 trim_trailing_whitespace = unset
108 [pkgs/top-level/emscripten-packages.nix]
109 trim_trailing_whitespace = unset
111 [pkgs/top-level/perl-packages.nix]
112 indent_size = unset