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
Copy file name to clipboardExpand all lines: .golangci.yaml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ linters-settings:
115
115
nakedret:
116
116
# Make an issue if func has more lines of code than this setting, and it has naked returns.
117
117
# Default: 30
118
-
max-func-lines: 0
118
+
max-func-lines: 30
119
119
120
120
nolintlint:
121
121
# Exclude following linters from requiring an explanation.
@@ -188,7 +188,7 @@ linters:
188
188
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod.
189
189
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations.
190
190
- goprintffuncname # Checks that printf-like functions are named with f at the end
191
-
- gosec # Inspects source code for security problems
191
+
#- gosec # Inspects source code for security problems
192
192
- lll # Reports long lines
193
193
- makezero # Finds slice declarations with non-zero initial length
194
194
- nakedret # Finds naked returns in functions greater than a specified function length
@@ -197,7 +197,7 @@ linters:
197
197
- nilnil # Checks that there is no simultaneous return of nil error and an invalid value.
198
198
- noctx # noctx finds sending http request without context.Context
199
199
- nolintlint # Reports ill-formed or insufficient nolint directives
200
-
- nonamedreturns # Reports all named returns
200
+
#- nonamedreturns # Reports all named returns
201
201
- nosprintfhostport # Checks for misuse of Sprintf to construct a host with port in a URL.
202
202
- predeclared # find code that shadows one of Go's predeclared identifiers
203
203
- promlinter # Check Prometheus metrics naming via promlint
0 commit comments