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 @@ -1118,15 +1118,15 @@ endif
1118
1118
tools :
1119
1119
cd internal/tools && go generate -tags tools ./
1120
1120
1121
- LINTFILESCMD =find src/os/ src/reflect/ -type f -name '*.go'
1121
+ LINTDIRS = src/os/ src/reflect/
1122
1122
.PHONY : lint
1123
1123
lint : tools # # Lint source tree
1124
1124
revive -version
1125
1125
# TODO: lint more directories!
1126
1126
# revive.toml isn't flexible enough to filter out just one kind of error from a checker, so do it with grep here.
1127
1127
# Can't use grep with friendly formatter. Plain output isn't too bad, though.
1128
1128
# Use 'grep .' to get rid of stray blank line
1129
- revive -config revive.toml compiler/... $$( $( LINTFILESCMD ) ) \
1129
+ revive -config revive.toml compiler/... $$( find $( LINTDIRS ) -type f -name '*.go' ) \
1130
1130
| grep -v " should have comment or be unexported" \
1131
1131
| grep ' .' \
1132
1132
| awk ' {print}; END {exit NR>0}'
You can’t perform that action at this time.
0 commit comments