Skip to content

Commit

Permalink
more linter tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jan 31, 2024
1 parent eda5c77 commit 2fbf3a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ jobs:
golangci:
name: lint
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.19]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
with:
go-version: ${{ matrix.go }}
- uses: golangci/golangci-lint-action@v3
Expand Down
23 changes: 14 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ linters:
enable-all: true
disable:
- cyclop
- deadcode # deprecated
- depguard
- dupl
- exhaustive
- exhaustivestruct
- exhaustruct
- errorlint
- funlen
- gci
Expand All @@ -35,17 +36,22 @@ linters:
- ifshort
- ireturn # No, I _LIKE_ returning interfaces
- lll
- maintidx # Do this in code review
- maligned # deprecated
- makezero
- nakedret
- nestif
- nlreturn
- nonamedreturns # visit this back later
- nosnakecase
- paralleltest
- scopelint # deprecated
- structcheck # deprecated
- tagliatelle
- testpackage
- thelper
- varnamelen # short names are ok
- thelper # Tests are fine
- varcheck # deprecated
- varnamelen # Short names are ok
- wrapcheck
- wsl

Expand All @@ -60,22 +66,21 @@ issues:
text: "don't use an underscore in package name"
linters:
- revive
- path: /main.go
- path: /*.go
linters:
- errcheck
- path: internal/codegen/codegen.go
- contextcheck
- exhaustruct
- path: /main.go
linters:
- errcheck
- path: /*_test.go
linters:
- errcheck
- errchkjson
- forcetypeassert
- path: /*_example_test.go
linters:
- forbidigo
- path: cmd/jwx/jwx.go
linters:
- forbidigo

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
Expand Down

0 comments on commit 2fbf3a3

Please sign in to comment.