Introduce staticcheck

This commit is contained in:
Yoshiyuki Mineo
2025-05-02 01:11:59 +09:00
parent 6ff253cccd
commit 8cab4fa3ea
2 changed files with 20 additions and 2 deletions

View File

@@ -33,8 +33,17 @@ jobs:
- name: gofmt
run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: golint
run: test -z "`golint ./...`"
run: test -z "`$(go env GOPATH)/bin/golint ./...`"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: staticcheck
run: $(go env GOPATH)/bin/staticcheck ./...
- name: go test
run: go test -v ./...

View File

@@ -39,8 +39,17 @@ jobs:
- name: gofmt
run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: golint
run: test -z "`golint ./...`"
run: test -z "`$(go env GOPATH)/bin/golint ./...`"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: staticcheck
run: $(go env GOPATH)/bin/staticcheck ./...
- name: Build example
run: cd example && ./linux64_build.sh