Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add golangci-lint to circleci config #907

Merged
merged 12 commits into from
May 16, 2022
Merged
Next Next commit
build: add golangci-lint to circleci config
  • Loading branch information
dominicbarnes committed May 16, 2022
commit 709c8bcb4564794ff321e2a861e4b6baa80636c5
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
version: 2
jobs:
lint:
docker:
- image: golangci/golangci-lint:v1.45-alpine
steps:
- checkout
- run: golangci-lint run

# The kafka 0.10 tests are maintained as a separate configuration because
# kafka only supported plain text SASL in this version.
kafka-010:
Expand Down Expand Up @@ -287,6 +294,7 @@ workflows:
version: 2
run:
jobs:
- lint
- kafka-010
- kafka-011
- kafka-101
Expand Down
15 changes: 15 additions & 0 deletions .golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
linters:
enable-all: true
disable:
- exhaustivestruct
- golint
- interfacer
- maligned
- scopelint
- testpackage

linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
ignoretests: true