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
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,10 @@ linters:
52
52
- prealloc
53
53
- forbidigo
54
54
- goprintffuncname
55
+
- depguard
56
+
- intrange
57
+
- mnd
58
+
- tagalign
55
59
56
60
linters-settings:
57
61
govet:
@@ -74,22 +78,22 @@ issues:
74
78
exclude-use-default: false
75
79
exclude:
76
80
# Captured by errcheck.
77
-
- '^(G104|G204):'
81
+
- "^(G104|G204):"
78
82
# Very commonly not checked.
79
83
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
80
84
- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
81
-
- 'comment on exported method'
82
-
- 'composite literal uses unkeyed fields'
85
+
- "comment on exported method"
86
+
- "composite literal uses unkeyed fields"
83
87
- 'declaration of "err" shadows declaration'
84
-
- 'should not use dot imports'
85
-
- 'Potential file inclusion via variable'
86
-
- 'should have comment or be unexported'
87
-
- 'comment on exported var .* should be of the form'
88
-
- 'at least one file in a package should have a package comment'
89
-
- 'string literal contains the Unicode'
90
-
- 'methods on the same type should have the same receiver name'
91
-
- '_TokenType_name should be _TokenTypeName'
92
-
- '`_TokenType_map` should be `_TokenTypeMap`'
93
-
- 'rewrite if-else to switch statement'
94
-
- 'comment.*should be of the form'
95
-
- 'should have comment'
88
+
- "should not use dot imports"
89
+
- "Potential file inclusion via variable"
90
+
- "should have comment or be unexported"
91
+
- "comment on exported var .* should be of the form"
92
+
- "at least one file in a package should have a package comment"
93
+
- "string literal contains the Unicode"
94
+
- "methods on the same type should have the same receiver name"
0 commit comments