Permalink
Browse files

Make jshint-caught issues non-fatal

  • Loading branch information...
1 parent bf034b7 commit 46fcd6bd3480f47910302eb9ade9eb1045c1104a @dmose committed Apr 18, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −0 example/collision-cubes/collision-cubes.js
  2. +4 −2 tools/pre-commit.sh
@@ -92,6 +92,7 @@ document.addEventListener( "DOMContentLoaded", function( e ){
// Make a user-controllable object that can collide with the obstacle
var playerKeyHandler = function(e) {
+ console.log("playerKeyHandler entered");
if( this.owner ) {
// If we have an owner, dispatch a game event for it to enjoy
var keyCode = e.data.code;
View
@@ -9,9 +9,11 @@
git stash -q --keep-index
+echo "Running jshint; the commit will be allowed even if there are errors."
+echo "Please commit appropriate fixes before making a pull request."
+
make jshint
-RESULT=$?
git stash pop -q
-[ $RESULT -ne 0 ] && exit 1
+
exit 0

0 comments on commit 46fcd6b

Please sign in to comment.