Skip to content

Commit d407307

Browse files
emyllerclaude
andauthored
fix: CI lint silently breaks whenever a new Go stable is released (#207)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 017af04 commit d407307

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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 ./...

.golangci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
linters-settings:
2-
misspell:
3-
locale: UK
4-
ignore-words:
5-
- standardize # hujson library uses US spelling
1+
version: "2"
62
linters:
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
2119
issues:
2220
max-issues-per-linter: 0
2321
max-same-issues: 0
24-
run:
25-
timeout: 5m
22+
formatters:
23+
enable:
24+
- gofmt
25+
- goimports

flagengine/utils/time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ func (i *ISOTime) UnmarshalJSON(bytes []byte) (err error) {
1717
}
1818

1919
func (i *ISOTime) MarshalJSON() ([]byte, error) {
20-
return []byte(`"` + i.Time.Format(time.RFC3339) + `"`), nil
20+
return []byte(`"` + i.Format(time.RFC3339) + `"`), nil
2121
}

realtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)