File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1000,15 +1000,15 @@ endif
1000
1000
tools :
1001
1001
cd internal/tools && go generate -tags tools ./
1002
1002
1003
- LINTFILESCMD =find src/os/ src/reflect/ -type f -name '*.go'
1003
+ LINTDIRS = src/os/ src/reflect/
1004
1004
.PHONY : lint
1005
1005
lint : tools # # Lint source tree
1006
1006
revive -version
1007
1007
# TODO: lint more directories!
1008
1008
# revive.toml isn't flexible enough to filter out just one kind of error from a checker, so do it with grep here.
1009
1009
# Can't use grep with friendly formatter. Plain output isn't too bad, though.
1010
1010
# Use 'grep .' to get rid of stray blank line
1011
- revive -config revive.toml compiler/... $$( $( LINTFILESCMD ) ) \
1011
+ revive -config revive.toml compiler/... $$( find $( LINTDIRS ) -type f -name '*.go' ) \
1012
1012
| grep -v " should have comment or be unexported" \
1013
1013
| grep ' .' \
1014
1014
| awk ' {print}; END {exit NR>0}'
You can’t perform that action at this time.
0 commit comments