Skip to content

Commit

Permalink
Disable unused linter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nono committed Jan 15, 2020
1 parent 7c0f87a commit 58e1dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
command: |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.21.0
sudo cp ./bin/golangci-lint $GOPATH/bin/
golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace
golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace -D unused
- save_cache:
key: v1-gopkg
paths:
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if git grep -l \
fi

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

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

0 comments on commit 58e1dd1

Please sign in to comment.