@@ -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]
@@ -488,6 +489,7 @@ golangci-lint help linters
488
489
- [wsl](https://github.com/bombsimon/wsl) - Whitespace Linter - Forces you to use empty lines!
489
490
- [goprintffuncname](https://github.com/jirfag/go-printf-func-name) - Checks that printf-like functions are named with `f` at the end
490
491
- [gomnd](https://github.com/tommy-muehle/go-mnd) - An analyzer to detect magic numbers.
492
+ - [godot](https://github.com/tetafro/godot) - Check if comments end in a period
491
493
492
494
## Configuration
493
495
@@ -736,6 +738,9 @@ linters-settings:
736
738
gocyclo:
737
739
# minimal code complexity to report, 30 by default (but we recommend 10 -20 )
738
740
min-complexity: 10
741
+ godot:
742
+ # check all top-level comments, not only declarations
743
+ check-all: false
739
744
godox:
740
745
# report any comments starting with keywords, this is useful for TODO or FIXME comments that
741
746
# might be left in the code accidentally and should be resolved before merging
@@ -1261,6 +1266,7 @@ Thanks to developers and authors of used linters:
1261
1266
- [bombsimon](https://github.com/bombsimon)
1262
1267
- [jirfag](https://github.com/jirfag)
1263
1268
- [tommy-muehle](https://github.com/tommy-muehle)
1269
+ - [tetafro](https://github.com/tetafro)
1264
1270
1265
1271
## Changelog
1266
1272
0 commit comments