Skip to content

Commit

Permalink
A script to check for common errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rehno-lindeque committed Dec 13, 2011
1 parent ab3677f commit 1efcd0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lint.sh
@@ -0,0 +1,10 @@
# This script is helpful for checking

# x == [] is always false since javascript is comparing references rather than values
# Use x.length == 0 instead
grep "\=\= \[\]" src/* -r
grep "\!\= \[\]" src/* -r

# Search for debugging helpers
grep "console.log" src/* -r
grep "alert" src/* -r

0 comments on commit 1efcd0a

Please sign in to comment.