-
Notifications
You must be signed in to change notification settings - Fork 5
/
fix-whitespace.yaml
64 lines (61 loc) · 1.89 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
# 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/directory names.
# For details, see http://hackage.haskell.org/package/filemanip-0.3.6.3/docs/System-FilePath-GlobPattern.html
#
included-dirs:
- src/full/Agda/Compiler/MAlonzo
# Without this line the above path will be excluded.
excluded-dirs:
- "**/MAlonzo" # matches every MAlonzo in any directory including the src/full/Agda/Compiler/MAlonzo
- "**/dist*" # matches every dist* in any directory
- .stack-work
- _darcs
- .git
- std-lib
- test/Succeed/LineEndings
- examples/uptodate
# Every matched filename is included unless it is matched by excluded-files.
included-files:
- "**/*.agda"
- "**/*.cabal"
- "**/*.el"
- "**/*.hs"
- "**/*.hs-boot"
- "**/*.lagda"
- "**/*.lhs"
- "**/*.md"
- "**/*.rst"
- "**/*.x"
- "**/*.y"
- "**/*.yaml"
- "**/*.yml"
excluded-files:
# Andreas (24 Sep 2014).
# The following files are exempt from the whitespace check,
# as they test behavior of Agda with regard to tab characters.
- "test/Succeed/Whitespace.agda"
- "test/Succeed/Issue1337.agda"
- "test/Fail/Tabs.agda"
- "test/Fail/TabsInPragmas.agda"
- "src/full/Agda/Syntax/Parser/Lexer.hs"
- "test/LaTeXAndHTML/succeed/AccidentalSpacesAfterBeginCode.lagda"