-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gometalinter.json
30 lines (30 loc) · 1011 Bytes
/
.gometalinter.json
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
{
"EnableAll": true,
"Linters": {
"prealloc": {
"Command": "prealloc -forloops -rangeloops -set_exit_status -simple=false",
"Pattern": "^(?P<path>.*?\\.go):(?P<line>\\d+) (?P<message>.*)",
"IsFast": true
},
"scopelint": {
"Command": "scopelint",
"Pattern": "^(?P<path>.*?\\.go):(?P<line>[\\d:]+) (?P<message>.*)",
"IsFast": true
}
},
"Disable": ["safesql"],
"Exclude": [
"Potential file inclusion via variable",
"error return value not checked",
"Errors unhandled.",
"Expect file permissions to be",
"Expect directory permissions to be",
"Subprocess launched with variable",
"cyclomatic complexity \\d+ of function readSetting",
"cyclomatic complexity \\d+ of function TestExecuteCommandWithTimeout"
],
"Cyclo": 16,
"Aggregate": true,
"Sort": ["linter", "severity", "path", "line"],
"Deadline": "10m"
}