{"action":"opened","issue":{"url":"https://api.github.com/repos/golangci/golangci-lint/issues/235","repository_url":"https://api.github.com/repos/golangci/golangci-lint","labels_url":"https://api.github.com/repos/golangci/golangci-lint/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/golangci/golangci-lint/issues/235/comments","events_url":"https://api.github.com/repos/golangci/golangci-lint/issues/235/events","html_url":"https://github.com/golangci/golangci-lint/issues/235","id":364372839,"node_id":"MDU6SXNzdWUzNjQzNzI4Mzk=","number":235,"title":"skip-dirs options in .golangci.yml not equivalent to --skip-dirs flags","user":{"login":"fredbi","id":14262513,"node_id":"MDQ6VXNlcjE0MjYyNTEz","avatar_url":"https://avatars1.githubusercontent.com/u/14262513?v=4","gravatar_id":"","url":"https://api.github.com/users/fredbi","html_url":"https://github.com/fredbi","followers_url":"https://api.github.com/users/fredbi/followers","following_url":"https://api.github.com/users/fredbi/following{/other_user}","gists_url":"https://api.github.com/users/fredbi/gists{/gist_id}","starred_url":"https://api.github.com/users/fredbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredbi/subscriptions","organizations_url":"https://api.github.com/users/fredbi/orgs","repos_url":"https://api.github.com/users/fredbi/repos","events_url":"https://api.github.com/users/fredbi/events{/privacy}","received_events_url":"https://api.github.com/users/fredbi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-27T09:02:13Z","updated_at":"2018-09-27T09:02:13Z","closed_at":null,"author_association":"NONE","body":"Entering `skip-dirs`  regexp in .golangci.yml does not exclude dirs:\r\n```yaml\r\nskip-dirs:\r\n  - (assets|cognito)\r\n``` \r\n=> reports issues about files there\r\n\r\nwhereas running from the same directory:\r\n```bash\r\n$ golangci-lint run --skip-dirs='(assets|cognito)'\r\n``` \r\nskips the dirs with this pattern as expected.\r\n\r\n1. Version of golangci-lint: `golangci-lint --version` (or git commit if you don't use binary distribution)\r\n```bash\r\n$ git log -1\r\ncommit 0c82b641236764940235a15c3d51a4623b8045a1\r\nAuthor: Denis Isaev <denis@golangci.com>\r\nDate:   Wed Sep 5 20:49:57 2018 +0300\r\n\r\n    return gosec default excludes: it's too annoying for users\r\n```\r\n2. Go environment: `go version && go env`\r\n```\r\n$ go version && go env\r\ngo version go1.10.3 linux/amd64\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/home/ubuntu/.cache/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/ubuntu/thefundschain/poc.1.0.2\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/go\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/local/go/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build018406683=/tmp/go-build -gno-record-gcc-switches\"\r\n``` \r\n\r\n3. Verbose output of running: `golangci-lint run -v`\r\ncf. description above"}}
{"actor":{"display_login":"fredbi"}}