alecthomas / gometalinter

DEPRECATED: Use https://github.com/golangci/golangci-lint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skip matches differently depending on <path>

dterei opened this issue · comments

In my .gometalinter.json I have Skip set to something like:

{
  "Skip": [
    "src/company/pkgA",
    "src/company/pkgF",
  ]
}

If I invoke gometalinter from the project root as follows: gometalinter --config=.gometalinter.json src/company/... then the skip directives work as expected. However, if I try to invoke gometalinter to just lint a subset of the source code as follows: gometalinter --config=.gometalinter=.gometalinter.json src/company/pkgB/... then the skip directives are ignored and issues for "pkgA" and "pkgF" are displayed...

Am I doing something wrong? How can I configure skip to work regardless of what the argument is?