diff --git a/README.md b/README.md index 191629ec..c4018973 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ gosimple: Linter for Go source code that specializes in simplifying a code [fast govet (vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false] ineffassign: Detects when assignments to existing variables are not used [fast: true, auto-fix: false] staticcheck: Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false] -structcheck: Finds an unused struct fields [fast: true, auto-fix: false] +structcheck: Finds unused struct fields [fast: true, auto-fix: false] typecheck: Like the front-end of a Go compiler, parses and type-checks Go code [fast: true, auto-fix: false] unused: Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false] varcheck: Finds unused global variables and constants [fast: true, auto-fix: false] @@ -409,7 +409,7 @@ golangci-lint help linters - [staticcheck](https://staticcheck.io/) - Staticcheck is a go vet on steroids, applying a ton of static analysis checks - [unused](https://github.com/dominikh/go-tools/tree/master/cmd/unused) - Checks Go code for unused constants, variables, functions and types - [gosimple](https://github.com/dominikh/go-tools/tree/master/cmd/gosimple) - Linter for Go source code that specializes in simplifying a code -- [structcheck](https://github.com/opennota/check) - Finds an unused struct fields +- [structcheck](https://github.com/opennota/check) - Finds unused struct fields - [varcheck](https://github.com/opennota/check) - Finds unused global variables and constants - [ineffassign](https://github.com/gordonklaus/ineffassign) - Detects when assignments to existing variables are not used - [deadcode](https://github.com/remyoudompheng/go-misc/tree/master/deadcode) - Finds unused code diff --git a/pkg/golinters/structcheck.go b/pkg/golinters/structcheck.go index 4b6b106f..0d845a26 100644 --- a/pkg/golinters/structcheck.go +++ b/pkg/golinters/structcheck.go @@ -17,7 +17,7 @@ func (Structcheck) Name() string { } func (Structcheck) Desc() string { - return "Finds an unused struct fields" + return "Finds unused struct fields" } func (s Structcheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error) {