xcodes: build from source
[NixPkgs.git] / .editorconfig
blobc4682829e357bf9eb16c36dbbe08562683421298
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 [*.{asc,key,ovpn}]
51 insert_final_newline = unset
52 end_of_line = unset
53 trim_trailing_whitespace = unset
55 [*.lock]
56 indent_size = unset
58 # Although Markdown/CommonMark allows using two trailing spaces to denote
59 # a hard line break, we do not use that feature in nixpkgs since
60 # it forces the surrounding paragraph to become a <literallayout> which
61 # does not wrap reasonably.
62 # Instead of a hard line break, start a new paragraph by inserting a blank line.
63 [*.md]
64 trim_trailing_whitespace = true
66 # binaries
67 [*.nib]
68 end_of_line = unset
69 insert_final_newline = unset
70 trim_trailing_whitespace = unset
71 charset = unset
73 [eggs.nix]
74 trim_trailing_whitespace = unset
76 [nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
77 trim_trailing_whitespace = unset
79 [pkgs/build-support/dotnetenv/Wrapper/**]
80 end_of_line = unset
81 indent_style = unset
82 insert_final_newline = unset
83 trim_trailing_whitespace = unset
85 [pkgs/development/compilers/elm/registry.dat]
86 end_of_line = unset
87 insert_final_newline = unset
89 [pkgs/development/haskell-modules/hackage-packages.nix]
90 indent_style = unset
91 trim_trailing_whitespace = unset
93 [pkgs/misc/documentation-highlighter/**]
94 insert_final_newline = unset
96 [pkgs/servers/dict/wordnet_structures.py]
97 trim_trailing_whitespace = unset
99 [pkgs/tools/misc/timidity/timidity.cfg]
100 trim_trailing_whitespace = unset
102 [pkgs/tools/virtualization/ovftool/*.ova]
103 end_of_line = unset
104 insert_final_newline = unset
105 trim_trailing_whitespace = unset
106 charset = unset
108 [lib/tests/*.plist]
109 indent_style = tab
110 insert_final_newline = unset