The configuration abused "Exclude" to exclude file-paths by filtering on the output, however, the `Skip` option was designed for that, whereas `Exclude` is for matching warnings. An explicit "Skip" was added for "vendor", because even though the vendor directory should already be ignored by the linter, in some situations, it still seemed to warn on issues, so let's explicitly ignore it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
47 lines
906 B
JSON
47 lines
906 B
JSON
{
|
|
"Vendor": true,
|
|
"Deadline": "2m",
|
|
"Sort": ["linter", "severity", "path", "line"],
|
|
"Skip": [
|
|
"cli/compose/schema/bindata.go",
|
|
"cli/command/stack/kubernetes/api/openapi",
|
|
"cli/command/stack/kubernetes/api/client",
|
|
".*generated.*",
|
|
"vendor"
|
|
],
|
|
"Exclude": [
|
|
"parameter .* always receives",
|
|
"_esc(Dir|FS|FSString|FSMustString) is unused"
|
|
],
|
|
"EnableGC": true,
|
|
"Linters": {
|
|
"nakedret": {
|
|
"Command": "nakedret",
|
|
"Pattern": "^(?P<path>.*?\\.go):(?P<line>\\d+)\\s*(?P<message>.*)$"
|
|
}
|
|
},
|
|
"WarnUnmatchedDirective": true,
|
|
|
|
"DisableAll": true,
|
|
"Enable": [
|
|
"deadcode",
|
|
"gocyclo",
|
|
"gofmt",
|
|
"goimports",
|
|
"golint",
|
|
"gosimple",
|
|
"ineffassign",
|
|
"interfacer",
|
|
"lll",
|
|
"misspell",
|
|
"nakedret",
|
|
"unconvert",
|
|
"unparam",
|
|
"unused",
|
|
"vet"
|
|
],
|
|
|
|
"Cyclo": 16,
|
|
"LineLength": 200
|
|
}
|