Skip to content

Commit

Permalink
Update Go 1.22.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robbydyer committed May 30, 2024
1 parent fb942eb commit 3d375a1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
27 changes: 16 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
run:
# Until https://github.com/golangci/golangci-lint/issues/2649
go: 1.17
go: 1.20
tests: true
modules-download-mode: vendor
skip-dirs:
- vendor
- internal/rgbmatrix-rpi
- internal/proto
timeout: 5m
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- deadcode
- contextcheck
- durationcheck
- errcheck
- errorlint
- exportloopref
- importas
- ineffassign
- goconst
- gofumpt
- goimports
- gosimple
- govet
- misspell
- nakedret
- nilerr
- noctx
- nonamedreturns
- nosprintfhostport
- paralleltest
- predeclared
- promlinter
- revive
- sqlclosecheck
- staticcheck
- structcheck
- tparallel
- unconvert
- unused
- unparam
- varcheck
- whitespace
linters-settings:
govet:
check-shadowing: true
enabled-all: true
enable-all: true
disable:
- fieldalignment
goimports:
local-prefixes: github.com/robbydyer/sports
revive:
Expand All @@ -49,6 +50,10 @@ linters-settings:
disabled: true
issues:
exclude-use-default: false
exclude-dirs:
- vendor
- internal/rgbmatrix-rpi
- internal/proto
exclude:
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
- 'shadow: declaration of "err" shadows declaration at line (\d+)'
2 changes: 1 addition & 1 deletion internal/matrix/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (c *ConsoleMatrix) render(leds []uint32) error {

rendered = append(rendered, strings.Repeat("_ ", c.width+1)+"|")

fmt.Fprintln(c.out, strings.Join(rendered, "\n"))
_, _ = fmt.Fprintln(c.out, strings.Join(rendered, "\n"))

c.Reset()

Expand Down

0 comments on commit 3d375a1

Please sign in to comment.