Skip to content

Commit ea417ff

Browse files
committed
Fix incorrect description.
1 parent bbb0e6b commit ea417ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ depguard: Go linter that checks if package imports are in a list of acceptable p
199199
dogsled: Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
200200
dupl: Tool for code clone detection [fast: true, auto-fix: false]
201201
funlen: Tool for detection of long functions [fast: true, auto-fix: false]
202-
gochecknoglobals: Tool for detection of long functions [fast: true, auto-fix: false]
202+
gochecknoglobals: Checks that no globals are present in Go code [fast: true, auto-fix: false]
203203
gochecknoinits: Checks that no init functions are present in Go code [fast: true, auto-fix: false]
204204
goconst: Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
205205
gocritic: The most opinionated Go source code linter [fast: true, auto-fix: false]
@@ -462,7 +462,7 @@ golangci-lint help linters
462462
- [scopelint](https://github.com/kyoh86/scopelint) - Scopelint checks for unpinned variables in go programs
463463
- [gocritic](https://github.com/go-critic/go-critic) - The most opinionated Go source code linter
464464
- [gochecknoinits](https://github.com/leighmcculloch/gochecknoinits) - Checks that no init functions are present in Go code
465-
- [gochecknoglobals](https://github.com/leighmcculloch/gochecknoglobals) - Tool for detection of long functions
465+
- [gochecknoglobals](https://github.com/leighmcculloch/gochecknoglobals) - Checks that no globals are present in Go code
466466
- [godox](https://github.com/matoous/godox) - Tool for detection of FIXME, TODO and other comment keywords
467467
- [funlen](https://github.com/ultraware/funlen) - Tool for detection of long functions
468468
- [whitespace](https://github.com/ultraware/whitespace) - Tool for detection of leading and trailing whitespace

pkg/golinters/gochecknoglobals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewGochecknoglobals() *goanalysis.Linter {
4343
}
4444
return goanalysis.NewLinter(
4545
gochecknoglobalsName,
46-
"Tool for detection of long functions",
46+
"Checks that no globals are present in Go code",
4747
[]*analysis.Analyzer{analyzer},
4848
nil,
4949
).WithIssuesReporter(func(*linter.Context) []result.Issue {

0 commit comments

Comments
 (0)