Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
submodules: recursive

- name: Lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v9

- name: Build
run: go build -v ./...
Expand Down
22 changes: 11 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
linters-settings:
misspell:
locale: UK
ignore-words:
- standardize # hujson library uses US spelling
version: "2"
linters:
default: none
enable:
- contextcheck
- errcheck
- godot
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- unused
- whitespace
disable-all: true
settings:
misspell:
locale: UK
ignore-rules:
- standardize # hujson library uses US spelling
issues:
max-issues-per-linter: 0
max-same-issues: 0
run:
timeout: 5m
formatters:
enable:
- gofmt
- goimports
2 changes: 1 addition & 1 deletion flagengine/utils/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ func (i *ISOTime) UnmarshalJSON(bytes []byte) (err error) {
}

func (i *ISOTime) MarshalJSON() ([]byte, error) {
return []byte(`"` + i.Time.Format(time.RFC3339) + `"`), nil
return []byte(`"` + i.Format(time.RFC3339) + `"`), nil
}
2 changes: 1 addition & 1 deletion realtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (r *realtime) connect() error {
if err != nil {
return err
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("error response connecting to stream: %d", resp.StatusCode)
}
Expand Down
Loading