Skip to content

Commit df08893

Browse files
committed
lint: allow init functions
1 parent b574e34 commit df08893

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ linters:
3838
# the linter.
3939
- prealloc
4040

41+
# Init functions are used by loggers throughout the codebase.
42+
- gochecknoinits
43+
4144
issues:
4245
# Only show newly introduced problems.
4346
new-from-rev: 36838cf7f464cf73b0201798063b2caffeae4250

0 commit comments

Comments
 (0)