From a44466b2b2905c34d421280e7398afca9317532c Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Fri, 16 Feb 2024 22:09:16 +0800 Subject: [PATCH] chore: enable gocritic in linter --- .github/workflows/lint.yaml | 2 +- Makefile | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e827e02..ad483e4 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,7 +16,7 @@ jobs: go-version: stable - uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0 with: - args: --timeout=180s + args: --timeout=180s --enable gocritic lint-commits: permissions: contents: read diff --git a/Makefile b/Makefile index 2586864..58ae1a4 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ build: .PHONY: lint lint: - golangci-lint run + golangci-lint run --enable gocritic .PHONY: fuzz fuzz: mod-tidy generate diff --git a/README.md b/README.md index f48e98e..78a1551 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ It also automatically builds and tests your code using [GitHub Actions](https:// * Test Pull Requests using `go test`. * Build Docker images from Pull Requests for manual testing and review. * Static code analysis using [CodeQL](https://codeql.github.com/) and [Go Report Card](https://goreportcard.com/). -* Test coverage analysis using [Coveralls](https://coveralls.io/). +* Coverage analysis using the [go-test-coverage action](https://github.com/vladopajic/go-test-coverage). * Security analysis using [OpenSSF](https://securityscorecards.dev). ## How to use