summaryrefslogtreecommitdiff
path: root/.arclint
blob: 70767e9fb4a01fd112982289d20c096f7a468095 (plain)
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
{
  "linters": {
    "filename": {
      "type": "filename"
    },
    "generated": {
      "type": "generated"
    },
    "merge-conflict": {
      "type": "merge-conflict",
      "exclude": "(\\.rst$)"
    },
    "nolint": {
      "type": "nolint"
    },
    "haskell": {
      "type": "text",
      "include": ["(\\.(l?hs(-boot)?|x|y\\.pp)(\\.in)?$)"],
      "severity": {
        "5": "disabled",
        "2": "warning"
      }
    },
    "c": {
      "type": "text",
      "include": ["(\\.(c|h)(\\.in)?$)"],
      "severity": {
        "2": "warning"
      }
    },
    "text-xml": {
      "type": "text",
      "include": "(\\.xml$)",
      "severity": {
        "5": "disabled",
        "3": "disabled",
        "2": "warning"
      }
    },
    "shell": {
      "type": "text",
      "include": [ "(\\.sh$)" ],
      "text.max-line-length": 200,
      "severity": {
        "2": "warning"
      }
    },
    "makefiles": {
      "type": "text",
      "include": [ "(Makefile$)", "(\\.mk$)" ],
      "text.max-line-length": 400,
      "severity": {
        "2": "disabled"
      }
    },
    "check-binaries": {
      "type": "external-json",
      "external-json.script": "python .arc-linters/check-binaries.py"
    },
    "check-makefiles": {
      "type": "external-json",
      "include": ["(Makefile$)"],
      "external-json.script": "python .arc-linters/check-makefiles.py"
    },
    "bad-assert-clang-cpp": {
      "type": "external-json",
      "include": ["(\\.(l?hs|x|y\\.pp)(\\.in)?$)", "(\\.(c|h)$)"],
      "external-json.script": "python .arc-linters/check-cpp.py"
    }
  },

  "exclude":
    [ "(^libffi-tarballs)",
      "(^libraries/binary)",
      "(^libraries/bytestring)",
      "(^libraries/Cabal)",
      "(^libraries/containers)",
      "(^libraries/haskeline)",
      "(^libraries/pretty)",
      "(^libraries/terminfo)",
      "(^libraries/transformers)",
      "(^libraries/xhtml)",
      "(^libraries/Win32)",
      "(^libraries/primitive)",
      "(^libraries/vector)",
      "(^libraries/time)",
      "(^libraries/random)",
      "(^libraries/array)",
      "(^libraries/deepseq)",
      "(^libraries/directory)",
      "(^libraries/filepath)",
      "(^libraries/haskell98)",
      "(^libraries/haskell2010)",
      "(^libraries/hoopl)",
      "(^libraries/hpc)",
      "(^libraries/old-locale)",
      "(^libraries/old-time)",
      "(^libraries/process)",
      "(^libraries/unix)",
      "(^libraries/parallel)",
      "(^libraries/stm)",
      "(^libraries/dph)",
      "(^utils/haddock)",
      "(^nofib)",
      "(^utils/hsc2hs)",
      "(^libffi-tarballs)",
      "(^ghc-tarballs)"
    ]
}