Skip to content

Commit

Permalink
chore: Adds lint checks to CI (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume authored Jan 3, 2024
1 parent 4070185 commit d633c39
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ jobs:

- name: Unit tests
run: go test ./...

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest
args: -v --config ./.golangci.yml
21 changes: 9 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,16 @@ linters-settings:

linters:
enable:
- gofmt
# - gofmt
- govet
- errcheck
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
# - errcheck
# - staticcheck
# - unused
# - gosimple
- ineffassign
- deadcode
- typecheck
# Additional
- lll
# - lll
- godox
#- gomnd
#- goconst
Expand All @@ -239,10 +236,10 @@ linters:
# - nestif
# - gomodguard
- nakedret
- gci
# - gci
- misspell
- gofumpt
- whitespace
# - gofumpt
# - whitespace
- unconvert
- predeclared
- noctx
Expand Down

0 comments on commit d633c39

Please sign in to comment.