You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- http\.NotFound.* # return RFC 7807 problem details instead
46
+
- http\.Error.* # return RFC 7807 problem details instead
47
+
gomoddirectives:
48
+
replace-allow-list:
49
+
- github.com/abbot/go-http-auth
45
50
46
51
linters:
47
52
disable-all: true
@@ -62,23 +67,28 @@ linters:
62
67
- cyclop # checks function and package cyclomatic complexity
63
68
- dupl # tool for code clone detection
64
69
- durationcheck # checks for two durations multiplied together
70
+
- dogsled # find assignments/declarations with too many blank identifiers
65
71
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
66
72
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
67
-
- execinquery # checks query string in Query function which reads your Go src files and warning it finds
68
73
- exhaustive # checks exhaustiveness of enum switch statements
69
-
- exportloopref # checks for pointers to enclosing loop variables
74
+
- exptostd # detects functions from golang.org/x/exp/ that can be replaced by std functions
75
+
- copyloopvar # checks for pointers to enclosing loop variables
76
+
- fatcontext # detects nested contexts in loops and function literals
70
77
- forbidigo # forbids identifiers
71
78
- funlen # tool for detection of long functions
72
79
- gocheckcompilerdirectives # validates go compiler directive comments (//go:)
73
80
- goconst # finds repeated strings that could be replaced by a constant
74
81
- gocritic # provides diagnostics that check for bugs, performance and style issues
82
+
- gofmt # checks if the code is formatted according to 'gofmt' command
75
83
- goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt
76
84
- gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
77
85
- gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations
78
86
- goprintffuncname # checks that printf-like functions are named with f at the end
79
87
- gosec # inspects source code for security problems
80
88
- loggercheck # checks key value pairs for common logger libraries (kitlog,klog,logr,zap)
81
89
- makezero # finds slice declarations with non-zero initial length
90
+
- mirror # reports wrong mirror patterns of bytes/strings usage
91
+
- misspell # finds commonly misspelled English words
82
92
- nakedret # finds naked returns in functions greater than a specified function length
83
93
- nestif # reports deeply nested if statements
84
94
- nilerr # finds the code that returns nil even if it checks that the error is not nil
@@ -92,7 +102,8 @@ linters:
92
102
- rowserrcheck # checks whether Err of rows is checked successfully
93
103
- sqlclosecheck # checks that sql.Rows and sql.Stmt are closed
94
104
- sloglint # A Go linter that ensures consistent code style when using log/slog
95
-
- tenv # detects using os.Setenv instead of t.Setenv since Go1.17
105
+
- tagliatelle # checks the struct tags.
106
+
- usetesting # detects using os.Setenv instead of t.Setenv since Go1.17
96
107
- testableexamples # checks if examples are testable (have an expected output)
97
108
- tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes
98
109
- unconvert # removes unnecessary type conversions
0 commit comments