Skip to content

Commit

Permalink
Add make staticcheck + config and some ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
mat committed Oct 3, 2024
1 parent 8d4f471 commit d0e60ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ minify_css:
gotags:
gotags -tag-relative=true -R=true -sort=true -f="tags" -fields=+l .

staticcheck:
staticcheck ./...

#
## Building ##
#
Expand Down
1 change: 1 addition & 0 deletions colorfinder/colorfinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
_ "github.com/mat/besticon/v3/ico"
)

//lint:ignore U1000 unused main function
func main() {
arg := os.Args[1]

Expand Down
2 changes: 1 addition & 1 deletion ico/ico.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ type bitmapHeaderRead struct {
type bitmapHeaderWrite struct {
sigBM [2]byte
fileSize uint32
resverved [2]uint16
resverved [2]uint16 //lint:ignore U1000 unused
pixOffset uint32
Size uint32
Width uint32
Expand Down
4 changes: 4 additions & 0 deletions staticcheck.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# staticcheck.conf

# Based on the default from https://staticcheck.dev/docs/configuration/#example-configuration
checks = ["all", "-SA9003", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1023", "-ST1013"]

0 comments on commit d0e60ea

Please sign in to comment.