Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

console.log typo fixed and success message #47

Merged
merged 1 commit into from

2 participants

@bitbonsai
Collaborator

Added a space to console messages ( 2 Warnings instead of 2Warnings ) and a Success Message case there are no errors or warnings: ✓ JSHint PASSED! (no Errors or Warnings)

Mauricio Wolff Added a space to console messages (2 Warnings instead of 2Warnings" a…
…nd a Success Message case there are no errors or warnings.
60551fa
@uipoet
Owner

Thanks for the nice additions. In the future, I'll likely tone down the all caps and add icons to the errors and warnings.

@uipoet uipoet merged commit a3e9c9d into uipoet:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 31, 2013
  1. Added a space to console messages (2 Warnings instead of 2Warnings" a…

    Mauricio Wolff authored
    …nd a Success Message case there are no errors or warnings.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 2 deletions.
  1. +7 −2 reporter.js
View
9 reporter.js
@@ -5,8 +5,8 @@ module.exports = {
reporter: function (errors, results, done) {
var
- errorString = 'Error',
- warningString = 'Warning',
+ errorString = ' Error',
+ warningString = ' Warning',
file = results[0].file,
errorLength, warningLength, globals, orphans;
@@ -77,6 +77,11 @@ module.exports = {
});
}
}
+
+ if (!errorLength && !errorLength) {
+ console.log('✓ JSHint PASSED! (no Errors or Warnings)');
+ }
+
process.stdout.write(buffer);
setTimeout('',3000);
}
Something went wrong with that request. Please try again.