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 ./... run: staticcheck -checks inherit,-SA1019 ./...
- name: 'Check: gosec' - name: 'Check: gosec'
if: always() 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 # 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. # run them on ubuntu-latest since it's the fastest one.
- name: 'Check: no executable was committed (ubuntu)' - name: 'Check: no executable was committed (ubuntu)'

@ -273,20 +273,11 @@ func TestDrawWritesSequenceImageToSpi(t *testing.T) {
for x := 0; x < width; x++ { for x := 0; x < width; x++ {
r := c r := c
c++ c++
if c > 255 {
c = 0
}
// Blue is set before Green on purpose to avoid having a straight sequence. // Blue is set before Green on purpose to avoid having a straight sequence.
b := c b := c
c++ c++
if c > 255 {
c = 0
}
g := c g := c
c++ c++
if c > 255 {
c = 0
}
clr := color.RGBA{r, g, b, 255} clr := color.RGBA{r, g, b, 255}
img.Set(x, y, clr) img.Set(x, y, clr)
} }

Loading…
Cancel
Save