Add linter to check for binaries accidentally added to repository
[ghc.git] / .arclint
1 {
2   "linters": {
3     "filename": {
4       "type": "filename"
5     },
6     "generated": {
7       "type": "generated"
8     },
9     "merge-conflict": {
10       "type": "merge-conflict",
11       "exclude": "(\\.rst$)"
12     },
13     "nolint": {
14       "type": "nolint"
15     },
16     "haskell": {
17       "type": "text",
18       "include": ["(\\.(l?hs(-boot)?|x|y\\.pp)(\\.in)?$)"],
19       "severity": {
20         "5": "disabled",
21         "2": "warning"
22       }
23     },
24     "c": {
25       "type": "text",
26       "include": ["(\\.(c|h)(\\.in)?$)"],
27       "severity": {
28         "2": "warning"
29       }
30     },
31     "text-xml": {
32       "type": "text",
33       "include": "(\\.xml$)",
34       "severity": {
35         "5": "disabled",
36         "3": "disabled",
37         "2": "warning"
38       }
39     },
40     "shell": {
41       "type": "text",
42       "include": [ "(\\.sh$)" ],
43       "text.max-line-length": 200,
44       "severity": {
45         "2": "warning"
46       }
47     },
48     "makefiles": {
49       "type": "text",
50       "include": [ "(Makefile$)", "(\\.mk$)" ],
51       "text.max-line-length": 400,
52       "severity": {
53         "2": "disabled"
54       }
55     },
56     "check-binaries": {
57       "type": "external-json",
58       "external-json.script": "python .arc-linters/check-binaries.py"
59     }
60   },
61
62   "exclude":
63     [ "(^libffi-tarballs)",
64       "(^libraries/binary)",
65       "(^libraries/bytestring)",
66       "(^libraries/Cabal)",
67       "(^libraries/containers)",
68       "(^libraries/haskeline)",
69       "(^libraries/pretty)",
70       "(^libraries/terminfo)",
71       "(^libraries/transformers)",
72       "(^libraries/xhtml)",
73       "(^libraries/Win32)",
74       "(^libraries/primitive)",
75       "(^libraries/vector)",
76       "(^libraries/time)",
77       "(^libraries/random)",
78       "(^libraries/array)",
79       "(^libraries/deepseq)",
80       "(^libraries/directory)",
81       "(^libraries/filepath)",
82       "(^libraries/haskell98)",
83       "(^libraries/haskell2010)",
84       "(^libraries/hoopl)",
85       "(^libraries/hpc)",
86       "(^libraries/old-locale)",
87       "(^libraries/old-time)",
88       "(^libraries/process)",
89       "(^libraries/unix)",
90       "(^libraries/parallel)",
91       "(^libraries/stm)",
92       "(^libraries/dph)",
93       "(^utils/haddock)",
94       "(^nofib)",
95       "(^utils/hsc2hs)",
96       "(^libffi-tarballs)",
97       "(^ghc-tarballs)"
98     ]
99 }