Skip to content

Commit 58e1dd1

Browse files
committed
Disable unused linter
Currently, golangci-lint has some issues that make it fail randomly. Disabling the `unused` linter seems to improve things, so let's do that until golangci-lint has a fix. See: - golangci/golangci-lint#827 - golangci/golangci-lint#885
1 parent 7c0f87a commit 58e1dd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
command: |
2323
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.21.0
2424
sudo cp ./bin/golangci-lint $GOPATH/bin/
25-
golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace
25+
golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace -D unused
2626
- save_cache:
2727
key: v1-gopkg
2828
paths:

scripts/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if git grep -l \
1111
fi
1212

1313
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.22.1
14-
bin/golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace --timeout 2m --max-same-issues 10
14+
bin/golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace -D unused --timeout 2m --max-same-issues 10
1515

1616
npm install [email protected] prettier eslint-plugin-prettier eslint-config-cozy-app
1717
./node_modules/.bin/eslint "assets/scripts/**" tests/integration/konnector/*.js

0 commit comments

Comments
 (0)