File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change
1
+ linters-settings :
2
+ govet :
3
+ check-shadowing : true
4
+ golint :
5
+ min-confidence : 0.6
6
+ gocyclo :
7
+ min-complexity : 15
8
+ maligned :
9
+ suggest-new : true
10
+ dupl :
11
+ threshold : 100
12
+ goconst :
13
+ min-len : 2
14
+ min-occurrences : 2
15
+ misspell :
16
+ locale : US
17
+ lll :
18
+ line-length : 140
19
+ gocritic :
20
+ enabled-tags :
21
+ - performance
22
+ - style
23
+ - experimental
24
+ disabled-checks :
25
+ - wrapperFunc
26
+ - hugeParam
27
+ - rangeValCopy
28
+
29
+ linters :
30
+ disable-all : true
31
+ enable :
32
+ - megacheck
33
+ - revive
34
+ - govet
35
+ - unconvert
36
+ - gas
37
+ - misspell
38
+ - unused
39
+ - typecheck
40
+ - ineffassign
41
+ - stylecheck
42
+ - gochecknoinits
43
+ - exportloopref
44
+ - nakedret
45
+ - gosimple
46
+ - prealloc
47
+
48
+ fast : false
49
+
50
+
51
+ run :
52
+ # modules-download-mode: vendor
53
+ skip-dirs :
54
+ - vendor
55
+ concurrency : 4
56
+
57
+ issues :
58
+ exclude-rules :
59
+ - text : " should have a package comment, unless it's in another file for this package"
60
+ linters :
61
+ - golint
62
+ - text : " exitAfterDefer:"
63
+ linters :
64
+ - gocritic
65
+ - text : " whyNoLint: include an explanation for nolint directive"
66
+ linters :
67
+ - gocritic
68
+ - text : " go.mongodb.org/mongo-driver/bson/primitive.E"
69
+ linters :
70
+ - govet
71
+ - text : " weak cryptographic primitive"
72
+ linters :
73
+ - gosec
74
+ - text : " at least one file in a package should have a package comment"
75
+ linters :
76
+ - stylecheck
77
+ - text : " should have a package comment"
78
+ linters :
79
+ - revive
80
+ - text : ' Deferring unsafe method "Close" on type "io.ReadCloser"'
81
+ linters :
82
+ - gosec
83
+ exclude-use-default : false
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ func SliceToString(s []any) []string {
78
78
return strSlice
79
79
}
80
80
81
+ // nolint
81
82
func bytesToString (bytes []byte ) string {
82
83
sliceHeader := (* reflect .SliceHeader )(unsafe .Pointer (& bytes ))
83
84
return * (* string )(unsafe .Pointer (& reflect.StringHeader {
You can’t perform that action at this time.
0 commit comments