File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1098,15 +1098,15 @@ endif
1098
1098
tools :
1099
1099
cd internal/tools && go generate -tags tools ./
1100
1100
1101
- LINTFILESCMD =find src/os/ src/reflect/ -type f -name '*.go'
1101
+ LINTDIRS = src/os/ src/reflect/
1102
1102
.PHONY : lint
1103
1103
lint : tools # # Lint source tree
1104
1104
revive -version
1105
1105
# TODO: lint more directories!
1106
1106
# revive.toml isn't flexible enough to filter out just one kind of error from a checker, so do it with grep here.
1107
1107
# Can't use grep with friendly formatter. Plain output isn't too bad, though.
1108
1108
# Use 'grep .' to get rid of stray blank line
1109
- revive -config revive.toml compiler/... $$( $( LINTFILESCMD ) ) \
1109
+ revive -config revive.toml compiler/... $$( find $( LINTDIRS ) -type f -name '*.go' ) \
1110
1110
| grep -v " should have comment or be unexported" \
1111
1111
| grep ' .' \
1112
1112
| awk ' {print}; END {exit NR>0}'
You can’t perform that action at this time.
0 commit comments