File tree Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 1
1
run :
2
2
timeout : 5m
3
- tests : false
3
+ tests : true
4
4
fast : false
5
5
skip-dirs-use-default : true
6
6
print-issued-lines : true
@@ -12,7 +12,6 @@ linters:
12
12
enable :
13
13
- deadcode
14
14
- errcheck
15
- - errname
16
15
- gosimple
17
16
- govet
18
17
- ineffassign
@@ -21,9 +20,11 @@ linters:
21
20
- typecheck
22
21
- unused
23
22
- varcheck
23
+
24
24
- asciicheck
25
25
- bodyclose
26
26
- dogsled
27
+ - errname
27
28
- errorlint
28
29
- exportloopref
29
30
- forbidigo
@@ -56,7 +57,40 @@ linters:
56
57
- whitespace
57
58
- wrapcheck
58
59
60
+ linters-settings :
61
+ gofumpt :
62
+ lang-version : " 1.17"
63
+ gosimple :
64
+ go : " 1.17"
65
+ staticcheck :
66
+ go : " 1.17"
67
+ stylecheck :
68
+ go : " 1.17"
69
+ unused :
70
+ go : " 1.17"
71
+
72
+ misspell :
73
+ locale : US
74
+
75
+ errcheck :
76
+ exclude-functions :
77
+ - io/ioutil.ReadFile
78
+ - io.Copy(*bytes.Buffer)
79
+ - io.Copy(os.Stdout)
80
+ - (*github.com/tunabay/go-bitarray.Builder).WriteBit
81
+ - (*github.com/tunabay/go-bitarray.Builder).WriteByte
82
+ - (*github.com/tunabay/go-bitarray.Builder).WriteBitArray
83
+
59
84
issues :
60
- max-issues-per-linter : 1023
61
- max-same-issues : 255
85
+ max-issues-per-linter : 0
86
+ max-same-issues : 0
62
87
fix : false
88
+
89
+ exclude-use-default : true
90
+ exclude-rules :
91
+
92
+ # ignore in unit tests
93
+ - linters : [ gosec, goerr113, ifshort ]
94
+ path : " _test\\ .go$"
95
+ - linters : [ staticcheck ]
96
+ text : " ^SA9003: empty branch"
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func ExampleBitArray_SHA384() {
34
34
// c6b08368812f4f02aaf84c1b8fcd549f53099816b212fe68cb32f6d73563fae8cec52b96051ade12ba8f3c6a6e98a616
35
35
}
36
36
37
- func ExampleBitArray_SHA512_256 () {
37
+ func ExampleBitArray_SHA512_256 () { //nolint: govet // false positive for _256 suffix
38
38
ba1 := bitarray .MustParse ("0000" )
39
39
ba2 := bitarray .MustParse ("00000" )
40
40
You can’t perform that action at this time.
0 commit comments