Silence linting

pull/77/head
Marc-Antoine Ruel 2 years ago
parent a9604df110
commit 67ec1da964

@ -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)'

@ -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)
}

Loading…
Cancel
Save