Skip to content

Commit

Permalink
linter: add --lint option
Browse files Browse the repository at this point in the history
  • Loading branch information
candid82 committed Jan 19, 2017
1 parent d21a1d1 commit b3d5fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func main() {
case "--read":
processFile(os.Args[2], READ)
case "--parse":
processFile(os.Args[2], PARSE)
case "--lint":
configureLinterMode()
processFile(os.Args[2], PARSE)
default:
Expand Down
2 changes: 1 addition & 1 deletion test-reader.sh → test-linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ filelist=$(find $1 -type f -name "*.clj")

for f in $filelist
do
ERROR=$(./joker --parse $f 2>&1)
ERROR=$(./joker --lint $f 2>&1)
if [ -n "$ERROR" ]; then
echo $f
echo "$ERROR"
Expand Down

0 comments on commit b3d5fca

Please sign in to comment.