Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthSim committed Sep 10, 2019
1 parent c641e3e commit 4bd7b72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
run:
skip-dirs:
- .tmp

linters:
fast: true
enable:
Expand All @@ -20,3 +24,12 @@ issues:
- linters:
- staticcheck
text: "SA4000:"

- path: listen(_no)?_reuseport\.go
linters:
- typecheck
text: "declar"

- linters:
- typecheck
text: "could not import C"
2 changes: 1 addition & 1 deletion .lefthook/pre-commit/lint
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ fi
export CGO_LDFLAGS_ALLOW="-s|-w"
export CGO_CFLAGS_ALLOW="-Xpreprocessor"

golangci-lint run
golangci-lint run ./*.go
2 changes: 1 addition & 1 deletion ico_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func icoData(data []byte) (out []byte, width int, height int, err error) {

// Ensure that image is in RGBA format
rgba := image.NewRGBA(ico.Bounds())
draw.Draw(rgba, ico.Bounds(), ico, image.ZP, draw.Src)
draw.Draw(rgba, ico.Bounds(), ico, image.Point{}, draw.Src)

width = rgba.Bounds().Dx()
height = rgba.Bounds().Dy()
Expand Down

0 comments on commit 4bd7b72

Please sign in to comment.