Skip to content

Commit

Permalink
WIP: golangci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Apr 6, 2024
1 parent 56915b9 commit 33feb87
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github

staticcheck:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -42,6 +42,7 @@ jobs:
with:
go-version: "1.22"

- run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.7

- run: ~/go/bin/staticcheck -checks all
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.57
15 changes: 14 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
run:
go: "1.21"
go: "1.22"
concurrency: 4
timeout: 1m
tests: false

linters:
disable-all: false
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused

linters-settings:
staticcheck:
checks: ["all"]

0 comments on commit 33feb87

Please sign in to comment.