Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 877dc70

Browse files
author
Erik Hollensbe
committed
Fix linter configuration
This removes the golint.sh file and replaces it with downloads/compiles of golint and staticcheck respectively. Signed-off-by: Erik Hollensbe <[email protected]>
1 parent 23eb233 commit 877dc70

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ gofmt:
1212
gofmt -s *.go >/dev/null
1313

1414
lint:
15-
sh golint.sh
15+
GO111MODULE=off go get golang.org/x/lint/golint
16+
golint ./...
1617

17-
megacheck:
18-
go get honnef.co/go/tools/cmd/megacheck
19-
GO111MODULE=off megacheck ./...
18+
staticcheck:
19+
GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck
20+
staticcheck ./...
2021

2122
libmruby.a: ${MRUBY_VENDOR_DIR}/mruby
2223
cd ${MRUBY_VENDOR_DIR}/mruby && ${MAKE}
@@ -28,7 +29,7 @@ ${MRUBY_VENDOR_DIR}/mruby:
2829
cd ${MRUBY_VENDOR_DIR}/mruby && git reset --hard && git clean -fdx
2930
cd ${MRUBY_VENDOR_DIR}/mruby && git checkout ${MRUBY_COMMIT}
3031

31-
test: gofmt lint
32+
test: libmruby.a gofmt lint
3233
go test -v
3334

34-
.PHONY: all clean libmruby.a test lint
35+
.PHONY: all clean libmruby.a test lint staticcheck

0 commit comments

Comments
 (0)