File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11run :
22 timeout : 5m
3- tests : false
3+ tests : true
44 fast : false
55 skip-dirs-use-default : true
66 print-issued-lines : true
@@ -12,7 +12,6 @@ linters:
1212 enable :
1313 - deadcode
1414 - errcheck
15- - errname
1615 - gosimple
1716 - govet
1817 - ineffassign
@@ -21,9 +20,11 @@ linters:
2120 - typecheck
2221 - unused
2322 - varcheck
23+
2424 - asciicheck
2525 - bodyclose
2626 - dogsled
27+ - errname
2728 - errorlint
2829 - exportloopref
2930 - forbidigo
@@ -56,7 +57,40 @@ linters:
5657 - whitespace
5758 - wrapcheck
5859
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+
5984issues :
60- max-issues-per-linter : 1023
61- max-same-issues : 255
85+ max-issues-per-linter : 0
86+ max-same-issues : 0
6287 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() {
3434 // c6b08368812f4f02aaf84c1b8fcd549f53099816b212fe68cb32f6d73563fae8cec52b96051ade12ba8f3c6a6e98a616
3535}
3636
37- func ExampleBitArray_SHA512_256 () {
37+ func ExampleBitArray_SHA512_256 () { //nolint: govet // false positive for _256 suffix
3838 ba1 := bitarray .MustParse ("0000" )
3939 ba2 := bitarray .MustParse ("00000" )
4040
You can’t perform that action at this time.
0 commit comments