File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 submodules : recursive
3131
3232 - name : Lint
33- uses : golangci/golangci-lint-action@v6
33+ uses : golangci/golangci-lint-action@v9
3434
3535 - name : Build
3636 run : go build -v ./...
Original file line number Diff line number Diff line change 1- linters-settings :
2- misspell :
3- locale : UK
4- ignore-words :
5- - standardize # hujson library uses US spelling
1+ version : " 2"
62linters :
3+ default : none
74 enable :
85 - contextcheck
96 - errcheck
107 - godot
11- - gofmt
12- - goimports
13- - gosimple
148 - govet
159 - ineffassign
1610 - misspell
1711 - staticcheck
1812 - unused
1913 - whitespace
20- disable-all : true
14+ settings :
15+ misspell :
16+ locale : UK
17+ ignore-rules :
18+ - standardize # hujson library uses US spelling
2119issues :
2220 max-issues-per-linter : 0
2321 max-same-issues : 0
24- run :
25- timeout : 5m
22+ formatters :
23+ enable :
24+ - gofmt
25+ - goimports
Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ func (i *ISOTime) UnmarshalJSON(bytes []byte) (err error) {
1717}
1818
1919func (i * ISOTime ) MarshalJSON () ([]byte , error ) {
20- return []byte (`"` + i .Time . Format (time .RFC3339 ) + `"` ), nil
20+ return []byte (`"` + i .Format (time .RFC3339 ) + `"` ), nil
2121}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ func (r *realtime) connect() error {
6464 if err != nil {
6565 return err
6666 }
67- defer resp .Body .Close ()
67+ defer func () { _ = resp .Body .Close () } ()
6868 if resp .StatusCode != http .StatusOK {
6969 return fmt .Errorf ("error response connecting to stream: %d" , resp .StatusCode )
7070 }
You can’t perform that action at this time.
0 commit comments