Merge pull request #8610 from Bodigrim/transformers-0.6
[cabal.git] / fix-whitespace.yaml
blobd96e84188b16535ada900573e6602f638daecec4
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
36 # Every matched filename is included unless it is matched by excluded-files.
37 included-files:
38   - .dockerignore
39   - .gitignore
40   - .gitattributes
41   - AUTHORS
42   - LICENSE
43   - "cabal.project.*"
44   - "*.ac"
45   - "*.bat"
46   - "*.bat_t"
47   - "*.c"
48   - "*.cabal"
49   - "*.cmm"
50   - "*.cobol"
51   - "*.conf"
52   - "*.config"
53   - "*.cfg"
54   - "*.cpp"
55   - "*.csh"
56   - "*.css"
57   - "*.css_t"
58   - "*.dhall"
59   - "*.dockerfile"
60   - "*.el"
61   - "*.h"
62   - "*.hs"
63   - "*.hs-boot"
64   - "*.hsc"
65   - "*.hsig"
66   - "*.html"
67   - "*.html_t"
68   - "*.in"
69   - "*.inc"
70   - "*.js"
71   - "*.js_t"
72   - "*.json"
73   - "*.lhs"
74   - "*.md"
75   - "*.py"
76   - "*.rst"
77   - "*.rst_t"
78   - "*.sh"
79   - "*.sty"
80   - "*.tex"
81   - "*.tex_t"
82   - "*.toml"
83   - "*.txt"
84   - "*.x"
85   - "*.y"
86   - "*.yaml"
87   - "*.yml"
88   - "*.zinza"
90 excluded-files:
91 # Exceptions
92   - Cabal-syntax/src/Distribution/Fields/Lexer.hs
93   - Cabal-tests/tests/ParserTests/warnings/tab.cabal
94   - Cabal-tests/tests/ParserTests/warnings/utf8.cabal
95   - cabal-testsuite/PackageTests/Regression/T8507/pkg.cabal
97   # These also contain tabs that affect the golden value:
98   # Could be removed from exceptions, but then the tab warning
99   # has to be removed from the corresponding .format file.
100   - Cabal-tests/tests/ParserTests/regressions/monad-param.cabal
101   - Cabal-tests/tests/ParserTests/regressions/th-lift-instances.cabal
103 # Files that use tabs
104   - Makefile
105   - GNUmakefile
106   - "*.mk"
107   - .mailmap
109 # Generated files
110   - TAGS
111   - "*.buildinfo"
112   - "*.check"
113   - "*.expr"
114   - "*.errors"
115   - "*.format"
116   - "*.freeze"
117   - "*.golden"
118   - "*.log"
119   - "*.out"
121 # Binary files
122   - "*.a"
123   - "*.dylib"
124   - "*.dyn_hi"
125   - "*.dyn_hi-boot"
126   - "*.enc"
127   - "*.exe"
128   - "*.gif"
129   - "*.gz"
130   - "*.hi"
131   - "*.hi-boot"
132   - "*.o"
133   - "*.o-boot"
134   - "*.p_hi"
135   - "*.p_o"
136   - "*.png"
137   - "*.so"