Skip to content

Commit

Permalink
Silence linting
Browse files Browse the repository at this point in the history
  • Loading branch information
maruel committed Sep 4, 2024
1 parent a9604df commit 67ec1da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
run: staticcheck -checks inherit,-SA1019 ./...
- name: 'Check: gosec'
if: always()
run: gosec -fmt=golint -quiet ./...
run: gosec -fmt=golint -quiet -exclude=G115 ./...
# The following checks are not dependent on the OS or go build tags. Only
# run them on ubuntu-latest since it's the fastest one.
- name: 'Check: no executable was committed (ubuntu)'
Expand Down
9 changes: 0 additions & 9 deletions unicornhd/unicornhd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,11 @@ func TestDrawWritesSequenceImageToSpi(t *testing.T) {
for x := 0; x < width; x++ {
r := c
c++
if c > 255 {
c = 0
}
// Blue is set before Green on purpose to avoid having a straight sequence.
b := c
c++
if c > 255 {
c = 0
}
g := c
c++
if c > 255 {
c = 0
}
clr := color.RGBA{r, g, b, 255}
img.Set(x, y, clr)
}
Expand Down

0 comments on commit 67ec1da

Please sign in to comment.