@@ -202,6 +202,7 @@ gochecknoinits: Checks that no init functions are present in Go code [fast: true
202202goconst: Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
203203gocritic: The most opinionated Go source code linter [fast: true, auto-fix: false]
204204gocyclo: Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
205+ godox: Tool for detection of FIXME, TODO and other comment keywords [fast: true, auto-fix: false]
205206gofmt: 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]
206207goimports: Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix: true]
207208golint: Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes [fast: true, auto-fix: false]
@@ -459,6 +460,7 @@ golangci-lint help linters
459460- [gocritic](https://github.com/go-critic/go-critic) - The most opinionated Go source code linter
460461- [gochecknoinits](https://github.com/leighmcculloch/gochecknoinits) - Checks that no init functions are present in Go code
461462- [gochecknoglobals](https://github.com/leighmcculloch/gochecknoglobals) - Checks that no globals are present in Go code
463+ - [godox](https://github.com/matoous/godox) - Tool for detection of FIXME, TODO and other comment keywords
462464- [funlen](https://github.com/ultraware/funlen) - Tool for detection of long functions
463465- [whitespace](https://github.com/ultraware/whitespace) - Tool for detection of leading and trailing whitespace
464466
@@ -766,6 +768,13 @@ linters-settings:
766768 paramsOnly: true
767769 rangeValCopy:
768770 sizeThreshold: 32
771+ godox:
772+ # report any comments starting with keywords, this is useful for TODO or FIXME comments that
773+ # might be left in the code accidentally and should be resolved before merging
774+ keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
775+ - NOTE
776+ - OPTIMIZE # marks code that should be optimized before merging
777+ - HACK # marks hack-arounds that should be removed before merging
769778
770779linters:
771780 enable:
@@ -901,6 +910,7 @@ linters:
901910 - dupl
902911 - errcheck
903912 # - funlen - TODO: enable it when golangci.com will support it.
913+ # - godox - TODO: enable it when golangci.com will support it.
904914 - gochecknoinits
905915 - goconst
906916 - gocritic
@@ -1082,6 +1092,7 @@ Thanks to developers and authors of used linters:
10821092- [kyoh86](https://github.com/kyoh86)
10831093- [go-critic](https://github.com/go-critic)
10841094- [leighmcculloch](https://github.com/leighmcculloch)
1095+ - [matoous](https://github.com/matoous)
10851096- [ultraware](https://github.com/ultraware)
10861097
10871098## Changelog
0 commit comments