From 9af293cf847cc8cd42dd62deedeabc380025101d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Gul=C3=A1csi?= Date: Tue, 10 Aug 2021 07:37:58 +0200 Subject: [PATCH] Add staticcheck Only U1000 (unused) yet --- .github/workflows/tests-lint.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/tests-lint.yaml b/.github/workflows/tests-lint.yaml index e17f04c9e..56ed78d7b 100644 --- a/.github/workflows/tests-lint.yaml +++ b/.github/workflows/tests-lint.yaml @@ -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)