You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* lint: expand to src/{os,reflect}, fix or suppress what it found
* internal/tools/tools.go: the tools idiom requires a build tag guard to avoid go test complaints
Copy file name to clipboardExpand all lines: GNUmakefile
+6-4
Original file line number
Diff line number
Diff line change
@@ -915,7 +915,9 @@ deb: build/release
915
915
endif
916
916
917
917
lint:
918
-
# Only run on compiler dir for now, expand as we clean up other dirs
919
-
# This obviously won't scale, but it's a start, and it's fast
920
-
go run github.com/mgechev/revive --version
921
-
go run github.com/mgechev/revive --config revive.toml compiler/...
918
+
go run github.com/mgechev/revive -version
919
+
# TODO: lint more directories!
920
+
# revive.toml isn't flexible enough to filter out just one kind of error from a checker, so do it with grep here.
921
+
# Can't use grep with friendly formatter. Plain output isn't too bad, though.
922
+
# Use 'grep .' to get rid of stray blank line
923
+
go run github.com/mgechev/revive -config revive.toml compiler/... src/{os,reflect}/*.go | grep -v "should have comment or be unexported"| grep '.'| awk '{print}; END {exit NR>0}'
0 commit comments