Introduce staticcheck

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

No files matched your search

+10 -1
View File
@@ -33,8 +33,17 @@ jobs:
- name: gofmt - name: gofmt
run: test -z "`gofmt -l .`" run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: golint - 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 - name: go test
run: go test -v ./... run: go test -v ./...
+10 -1
View File
@@ -39,8 +39,17 @@ jobs:
- name: gofmt - name: gofmt
run: test -z "`gofmt -l .`" run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: golint - 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 - name: Build example
run: cd example && ./linux64_build.sh run: cd example && ./linux64_build.sh