mirror of https://github.com/docker/cli.git
gometalinter: fix configuration
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>
This commit is contained in:
parent
146d29c018
commit
71e525f74f
|
@ -2,12 +2,16 @@
|
|||
"Vendor": true,
|
||||
"Deadline": "2m",
|
||||
"Sort": ["linter", "severity", "path", "line"],
|
||||
"Exclude": [
|
||||
"Skip": [
|
||||
"cli/compose/schema/bindata.go",
|
||||
"cli/command/stack/kubernetes/api/openapi",
|
||||
"cli/command/stack/kubernetes/api/client",
|
||||
".*generated.*",
|
||||
"parameter .* always receives"
|
||||
"vendor"
|
||||
],
|
||||
"Exclude": [
|
||||
"parameter .* always receives",
|
||||
"_esc(Dir|FS|FSString|FSMustString) is unused"
|
||||
],
|
||||
"EnableGC": true,
|
||||
"Linters": {
|
||||
|
|
Loading…
Reference in New Issue