Skip to content

Commit

Permalink
run staticcheck directly
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuoza committed Dec 9, 2021
1 parent 9092c3f commit 6f292b4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ GO111MODULE := on

GO_FILES := $(shell find . -type f -name '*.go' -print)

.PHONY: install
install:
go install honnef.co/go/tools/cmd/staticcheck@2021.1.1
go mod download

.PHONY: build
build: $(GO_FILES)
go build -trimpath -ldflags "-s -w -X main.Version=${GIT_VER}" -o tmp/switchbot cmd/switchbot/main.go
Expand All @@ -19,7 +14,7 @@ clean:

.PHONY: lint
lint:
staticcheck ./...
go run honnef.co/go/tools/cmd/staticcheck@2021.1.1 ./...

.PHONY: test
test:
Expand Down

0 comments on commit 6f292b4

Please sign in to comment.