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