@@ -48,8 +48,7 @@ linters:
4848 - gocognit # computes and checks the cognitive complexity of functions
4949 - goconst # finds repeated strings that could be replaced by a constant
5050 - gocritic # provides diagnostics that check for bugs, performance and style issues
51- # TODO: breaks multi-line comments when used with --fix: https://github.com/tetafro/godot/issues/39
52- # - godot # checks if comments end in a period
51+ - godot # checks if comments end in a period
5352 - gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
5453 - goprintffuncname # checks that printf-like functions are named with f at the end
5554 - gosec # inspects source code for security problems
@@ -128,16 +127,17 @@ linters:
128127 desc : Use github.com/google/uuid instead, satori's package is not maintained
129128 - pkg : github.com/gofrs/uuid$
130129 desc : Use github.com/gofrs/uuid/v5 or later, it was not a go module before v5
130+ - pkg : github.com/lrstanley/clix$
131+ desc : Use github.com/lrstanley/clix/v2 instead
132+ - pkg : github.com/lrstanley/chix$
133+ desc : Use github.com/lrstanley/chix/v2 instead
134+ - pkg : log$
135+ desc : Use log/slog instead, see https://go.dev/blog/slog
131136 " non-test files " :
132137 files : ["!$test"]
133138 deny :
134139 - pkg : math/rand$
135140 desc : Use math/rand/v2 instead, see https://go.dev/blog/randv2
136- " non-main files " :
137- files : ["!**/main.go"]
138- deny :
139- - pkg : log$
140- desc : Use log/slog instead, see https://go.dev/blog/slog
141141 " incorrect import " :
142142 files : ["$test"]
143143 deny :
@@ -168,6 +168,12 @@ linters:
168168 sloglint :
169169 no-global : default
170170 context : scope
171+ msg-style : lowercased
172+ static-msg : true
173+ forbidden-keys :
174+ - time
175+ - level
176+ - source
171177 staticcheck :
172178 checks :
173179 - all
0 commit comments