Closed
Description
Entering skip-dirs
regexp in .golangci.yml does not exclude dirs:
skip-dirs:
- (assets|cognito)
=> reports issues about files there
whereas running from the same directory:
$ golangci-lint run --skip-dirs='(assets|cognito)'
skips the dirs with this pattern as expected.
- Version of golangci-lint:
golangci-lint --version
(or git commit if you don't use binary distribution)
$ git log -1
commit 0c82b641236764940235a15c3d51a4623b8045a1
Author: Denis Isaev <denis@golangci.com>
Date: Wed Sep 5 20:49:57 2018 +0300
return gosec default excludes: it's too annoying for users
- Go environment:
go version && go env
$ go version && go env
go version go1.10.3 linux/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ubuntu/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ubuntu/thefundschain/poc.1.0.2"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build018406683=/tmp/go-build -gno-record-gcc-switches"
- Verbose output of running:
golangci-lint run -v
cf. description above