Skip to content

Commit

Permalink
Remove deprecated linters, specify go version in lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hoenn committed Dec 20, 2023
1 parent c983f69 commit af4946c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: 1.15
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
Expand All @@ -41,4 +44,4 @@ jobs:
# skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true
# skip-build-cache: true
3 changes: 0 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ linters-settings:

linters:
enable:
- deadcode
- depguard
- errcheck
- exportloopref
Expand All @@ -30,11 +29,9 @@ linters:
- prealloc
- revive
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
disable:
- gochecknoglobals # we allow global variables in packages
- gochecknoinits # we allow inits in packages
Expand Down

0 comments on commit af4946c

Please sign in to comment.