Skip to content

Commit

Permalink
chore: investigate ci linter issues (#67)
Browse files Browse the repository at this point in the history
* Empty commit for diff

* chore: update ci lint version

* chore: switch to golangcilint action

* chore: update to v6 version of golangcilint

* chore: disable mnd

* chore: remove deprecated and deactivated linters

* chore: disable depguard

* chore: update to go 1.22

* chore: disable testifylint

* chore: goerr13 has been renamed in the linter database

* chore: update go versions

* chore: go back to 1.21 for msrv

* chore: update linter to use 1.21

* chore: go mod tidy

* chore: test against 1.18 as a minimum again

* chore: remove id field
  • Loading branch information
kevaundray authored Jun 20, 2024
1 parent e13c8be commit fb694ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ^1.21
id: go

- name: Check go mod is tidy
run: |
Expand All @@ -33,7 +32,5 @@ jobs:
- name: Run staticcheck
run: staticcheck ./...

- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run golangci-lint
run: golangci-lint run
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
21 changes: 5 additions & 16 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ linters:
#
# Maybe fix later:
#
- goerr113
- mnd
- depguard
- testifylint
- err113
- stylecheck
- tagliatelle

Expand All @@ -32,28 +35,14 @@ linters:
- contextcheck
- rowserrcheck
- sqlclosecheck
- structcheck
- wastedassign

#
# Disabled because deprecated:
#
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- varcheck

linters-settings:
gofumpt:
extra-rules: true
gosec:
excludes:
- G404 # Insecure random number source (rand)
- G404 # Insecure random number source (rand)
govet:
enable-all: true
disable:
Expand Down

0 comments on commit fb694ef

Please sign in to comment.