Merge pull request #9077 from haskell/mergify/bp/3.10/pr-9071
[cabal.git] / fix-whitespace.yaml
blob1fa91e57c83d0ef5a65537b56538455c40e58502
1 # This file contains the project-specific settings for `fix-whitespace` a tiny
2 # but useful tool to
4 # * Removes trailing whitespace.
5 # * Removes trailing lines containing nothing but whitespace.
6 # * Ensures that the file ends in a newline character.
8 # By default, fix-whitespace checks every directory under the current working
9 # directory but no files. This program should be placed under a text-based
10 # project.
12 # For directories,
14 # 1) excluded-dirs is a black-list of directories,
15 # 2) included-dirs is a white-list of excluded-dirs
17 # For files,
19 # 3) included-files is a white-list of files,
20 # 4) excluded-files is a black-list of included-files.
22 # The extended glob pattern can be used to specify file/direcotory names.
23 # For details, see http://hackage.haskell.org/package/filemanip-0.3.6.3/docs/System-FilePath-GlobPattern.html
25 included-dirs:
26     # Without this line the above path will be excluded.
28 excluded-dirs:
29   - "**/dist*"   # matches every dist* in any directory
30   - _darcs
31   - .git
32   - .python-sphinx-virtualenv
33   - .stack-work
34   - .vscode
35   - license-list-data
37 # Every matched filename is included unless it is matched by excluded-files.
38 included-files:
39   - .dockerignore
40   - .gitignore
41   - .gitattributes
42   - AUTHORS
43   - LICENSE
44   - "cabal.project.*"
45   - "*.ac"
46   - "*.bat"
47   - "*.bat_t"
48   - "*.c"
49   - "*.cabal"
50   - "*.cmm"
51   - "*.cobol"
52   - "*.conf"
53   - "*.config"
54   - "*.cfg"
55   - "*.cpp"
56   - "*.csh"
57   - "*.css"
58   - "*.css_t"
59   - "*.dhall"
60   - "*.dockerfile"
61   - "*.el"
62   - "*.h"
63   - "*.hs"
64   - "*.hs-boot"
65   - "*.hsc"
66   - "*.hsig"
67   - "*.html"
68   - "*.html_t"
69   - "*.in"
70   - "*.inc"
71   - "*.js"
72   - "*.js_t"
73   - "*.json"
74   - "*.lhs"
75   - "*.md"
76   - "*.py"
77   - "*.rst"
78   - "*.rst_t"
79   - "*.sh"
80   - "*.sty"
81   - "*.tex"
82   - "*.tex_t"
83   - "*.toml"
84   - "*.txt"
85   - "*.x"
86   - "*.y"
87   - "*.yaml"
88   - "*.yml"
89   - "*.zinza"
91 excluded-files:
92 # Exceptions
93   - Cabal-syntax/src/Distribution/Fields/Lexer.hs
94   - Cabal-tests/tests/ParserTests/warnings/tab.cabal
95   - Cabal-tests/tests/ParserTests/warnings/utf8.cabal
96   - cabal-testsuite/PackageTests/Regression/T8507/pkg.cabal
98   # These also contain tabs that affect the golden value:
99   # Could be removed from exceptions, but then the tab warning
100   # has to be removed from the corresponding .format file.
101   - Cabal-tests/tests/ParserTests/regressions/monad-param.cabal
102   - Cabal-tests/tests/ParserTests/regressions/th-lift-instances.cabal
104 # Files that use tabs
105   - Makefile
106   - GNUmakefile
107   - "*.mk"
108   - .mailmap
110 # Generated files
111   - TAGS
112   - "*.buildinfo"
113   - "*.check"
114   - "*.expr"
115   - "*.errors"
116   - "*.format"
117   - "*.freeze"
118   - "*.golden"
119   - "*.log"
120   - "*.out"
122 # Binary files
123   - "*.a"
124   - "*.dylib"
125   - "*.dyn_hi"
126   - "*.dyn_hi-boot"
127   - "*.enc"
128   - "*.exe"
129   - "*.gif"
130   - "*.gz"
131   - "*.hi"
132   - "*.hi-boot"
133   - "*.o"
134   - "*.o-boot"
135   - "*.p_hi"
136   - "*.p_o"
137   - "*.png"
138   - "*.so"