From f777db70bab0c071b8a8c5749a072451dfc95faa Mon Sep 17 00:00:00 2001 From: Stephen Augustus Date: Sun, 6 Mar 2022 17:13:46 -0500 Subject: [PATCH] golangci-lint: Fix GCI warnings ...also, fixes some spacing issues in the config. Signed-off-by: Stephen Augustus --- .github/workflows/golangci.yml | 5 ++--- .golangci.yml | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 638860b8..ec0997c9 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -8,7 +8,7 @@ on: permissions: read-all jobs: - lint: + lint: name: Run golangci lint runs-on: ${{ matrix.os }} strategy: @@ -37,5 +37,4 @@ jobs: go-version: '1.17.x' - uses: golangci/golangci-lint-action@b517f99ae23d86ecc4c0dec08dcf48d2336abc29 with: - version: v1.44.0 - only-new-issues: true + only-new-issues: true diff --git a/.golangci.yml b/.golangci.yml index c960945b..bf7e1884 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -78,7 +78,10 @@ linters-settings: - FIXME - HACK gci: - local-prefixes: github.com/ossf/scorecard-action + sections: + - standard + - default + - prefix(github.com/ossf) gocritic: enabled-checks: # Diagnostic