You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,7 @@ gocognit: Computes and checks the cognitive complexity of functions [fast: true,
217
217
goconst: Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
218
218
gocritic: The most opinionated Go source code linter [fast: true, auto-fix: false]
219
219
gocyclo: Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
220
+
godot: Check if comments end in a period [fast: true, auto-fix: false]
220
221
godox: Tool for detection of FIXME, TODO and other comment keywords [fast: true, auto-fix: false]
221
222
gofmt: Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
222
223
goimports: Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix: true]
@@ -489,7 +490,7 @@ golangci-lint help linters
489
490
- [wsl](https://github.com/bombsimon/wsl) - Whitespace Linter - Forces you to use empty lines!
490
491
- [goprintffuncname](https://github.com/jirfag/go-printf-func-name) - Checks that printf-like functions are named with `f` at the end
491
492
- [gomnd](https://github.com/tommy-muehle/go-mnd) - An analyzer to detect magic numbers.
492
-
- [gomodguard](https://github.com/ryancurrah/gomodguard) - Allow and block list linter for direct Go module dependencies.
493
+
- [godot](https://github.com/tetafro/godot) - Check if comments end in a period
493
494
494
495
## Configuration
495
496
@@ -511,7 +512,7 @@ Usage:
511
512
golangci-lint run [flags]
512
513
513
514
Flags:
514
-
--out-format string Format of output: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml (default "colored-line-number")
515
+
--out-format string Format of output: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions (default "colored-line-number")
515
516
--print-issued-lines Print lines of code with issue (default true)
516
517
--print-linter-name Print linter name in issue line (default true)
517
518
--uniq-by-line Make issues output unique by line (default true)
@@ -738,6 +739,9 @@ linters-settings:
738
739
gocyclo:
739
740
# minimal code complexity to report, 30 by default (but we recommend 10-20)
740
741
min-complexity: 10
742
+
godot:
743
+
# check all top-level comments, not only declarations
744
+
check-all: false
741
745
godox:
742
746
# report any comments starting with keywords, this is useful for TODO or FIXME comments that
743
747
# might be left in the code accidentally and should be resolved before merging
@@ -1275,7 +1279,7 @@ Thanks to developers and authors of used linters:
0 commit comments