@@ -39,6 +39,7 @@ linters:
3939 - ginkgolinter # [if you use ginkgo/gomega] enforces standards of using ginkgo and gomega
4040 - gochecknoglobals # checks that no global variables exist
4141 - cyclop # replaced by revive
42+ - gocyclo # replaced by revive
4243 - funlen # replaced by revive
4344 - godox # TODO's are OK
4445 - ireturn # It's OK
@@ -47,6 +48,7 @@ linters:
4748 - goconst # finds repeated strings that could be replaced by a constant
4849 - goheader # checks is file header matches to pattern
4950 - gomodguard # [use more powerful depguard] allow and block lists linter for direct Go module dependencies
51+ - gomoddirectives
5052 - err113 # bad advice about dynamic errors
5153 - lll # [replaced by golines] reports long lines
5254 - mnd # detects magic numbers, duplicated by revive
@@ -98,6 +100,7 @@ linters:
98100 errcheck :
99101 # Report about not checking of errors in type assertions: `a := b.(MyStruct)`.
100102 check-type-assertions : true
103+ check-blank : true
101104
102105 exhaustive :
103106 # Program elements to check for exhaustiveness.
@@ -177,14 +180,15 @@ linters:
177180 - name : cognitive-complexity
178181 arguments : [50]
179182 - name : cyclomatic
180- severity : warning
181- arguments : [30]
183+ arguments : [55]
182184 - name : function-length
183185 arguments : [150, 225]
184186 - name : line-length-limit
185187 arguments : [150]
186188 - name : nested-structs
187189 disabled : true
190+ - name : max-public-structs
191+ arguments : [10]
188192
189193 rowserrcheck :
190194 # database/sql is always checked.
@@ -226,6 +230,7 @@ linters:
226230 - dupl
227231 - gosec
228232 - godot
233+ - govet # alignment
229234 - noctx
230235 - perfsprint
231236 - revive
0 commit comments