Add staticcheck

Only U1000 (unused) yet
This commit is contained in:
Tamás Gulácsi 2021-08-10 07:37:58 +02:00 committed by GitHub
parent 1c400bd5b3
commit 9af293cf84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -31,3 +31,18 @@ jobs:
test -z "$(git status --porcelain)"
go vet ./...
go run dev/envvardoc/envvardoc.go
- name: Run staticcheck with reviewdog
# You may pin to the exact commit or the version.
# uses: reviewdog/action-staticcheck@ebb262679ca6a0ab7b43ea94dbcbbc98ae077940
uses: reviewdog/action-staticcheck@v1.7.0
with:
# Reporter of reviewdog command [github-check,github-pr-review].
#reporter: # optional, default is github-pr-review
#filter_mode: # optional, default is added
#fail_on_error: # optional, default is false
# Additional reviewdog flags
# Target of staticcheck
#target: # optional, default is ./...
# staticcheck flags
staticcheck_flags: '-checks=U1000' # only unused (yet)