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.yml
+1-70Lines changed: 1 addition & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ linters-settings:
18
18
- nestingReduce
19
19
- sloppyReassign
20
20
- typeAssertChain
21
+
- builtinShadow
21
22
gocyclo:
22
23
min-complexity: 15
23
24
revive:
@@ -54,37 +55,17 @@ linters-settings:
54
55
# We still want empty methods for consistency - do not control if method will be empty.
55
56
# - name: unused-receiver
56
57
- name: unreachable-code
57
-
- name: redefines-builtin-id
58
-
tagliatelle:
59
-
# check the struck tag name case
60
-
case:
61
-
use-field-name: true
62
-
rules:
63
-
json: camel
64
-
yaml: camel
65
-
66
58
linters:
67
59
# please, do not use `enable-all`: it's deprecated and will be removed soon.
68
60
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
69
61
disable-all: true
70
62
enable:
71
63
- bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
72
-
#- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: false, auto-fix: false]
73
64
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
74
65
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
75
66
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
76
-
# Upstream code intentionally have number of non exhaustive checks
- exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix: false]
79
67
- gochecknoinits # Checks that no init functions are present in Go code [fast: true, auto-fix: false]
80
68
- gocritic # Provides many diagnostics that check for bugs, performance and style issues. [fast: false, auto-fix: false]
81
-
# Needs to be disabled for generated content as complexity comes from OpenAPI
82
-
# - gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
83
-
# We do not control comment content - it is OpenAPI driven
84
-
# - godot # Check if comments end in a period [fast: true, auto-fix: true]
85
-
# HTML format of our comments break this check thinking that files aren't formatted
86
-
# - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
87
-
# - goimports # Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix: true]
88
69
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix: false]
# - goheader # Checks is file header matches to pattern [fast: true, auto-fix: false]
128
-
# - gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod. [fast: true, auto-fix: false]
129
-
# - 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. [fast: true, auto-fix: false]
0 commit comments