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
{{ message }}
This repository was archived by the owner on May 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: .golangci.yml
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,16 @@ linters:
28
28
- durationcheck
29
29
- exportloopref
30
30
- gosec
31
+
- whitespace
31
32
32
-
#- structcheck # lots of false positives
33
-
#- errcheck #lot of false positives
34
-
# - contextcheck
35
-
# - errchkjson # lots of false positives
36
-
# - errorlint # this check crashes
37
-
# - exhaustive # silly check
38
-
# - makezero # false positives
39
-
# - nilerr # several intentional
33
+
#- structcheck # lots of false positives
34
+
#- errcheck #lot of false positives
35
+
# - contextcheck
36
+
# - errchkjson # lots of false positives
37
+
# - errorlint # this check crashes
38
+
# - exhaustive # silly check
39
+
# - makezero # false positives
40
+
# - nilerr # several intentional
40
41
41
42
linters-settings:
42
43
gofmt:
@@ -46,9 +47,9 @@ linters-settings:
46
47
min-occurrences: 6# minimum number of occurrences
47
48
gosec:
48
49
excludes:
49
-
- G404# Use of weak random number generator - lots of FP
50
-
- G107# Potential http request -- those are intentional
51
-
- G306# G306: Expect WriteFile permissions to be 0600 or less
50
+
- G404# Use of weak random number generator - lots of FP
51
+
- G107# Potential http request -- those are intentional
52
+
- G306# G306: Expect WriteFile permissions to be 0600 or less
52
53
53
54
issues:
54
55
exclude-rules:
@@ -67,5 +68,6 @@ issues:
67
68
exclude:
68
69
- 'SA1019: event.TypeMux is deprecated: use Feed'
69
70
- 'SA1019: strings.Title is deprecated'
71
+
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
70
72
- 'SA1029: should not use built-in type string as key for value'
71
-
- 'G306: Expect WriteFile permissions to be 0600 or less'
73
+
- 'G306: Expect WriteFile permissions to be 0600 or less'
0 commit comments