Permalink
Browse files

Fixed JSHint errors so that it can be turned on in Travis

  • Loading branch information...
1 parent fd58a5f commit 1cec48c065205ab3ddc70d3f372593481c0b3805 @wibblymat wibblymat committed Aug 5, 2013
Showing with 6 additions and 6 deletions.
  1. +1 −1 .jshintrc
  2. +3 −3 Gruntfile.js
  3. +1 −1 lib/core/resolvers/GitHubResolver.js
  4. +1 −1 lib/core/resolvers/UrlResolver.js
View
2 .jshintrc
@@ -26,7 +26,7 @@
"plusplus": false,
"regexp": false,
"undef": true,
- "unused": true,
+ "unused": "vars",
"quotmark": "single",
"strict": false,
"trailing": true,
View
6 Gruntfile.js
@@ -4,7 +4,7 @@ module.exports = function (grunt) {
options: {
jshintrc: '.jshintrc'
},
- files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*.js', '!test/assets/**/*']
+ files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*.js', '!test/assets/**/*', '!test/reports/**/*']
},
simplemocha: {
options: {
@@ -42,7 +42,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.registerTask('assets', ['exec:assets-force']);
- grunt.registerTask('test', ['exec:assets', 'simplemocha:full']);
+ grunt.registerTask('test', ['jshint', 'exec:assets', 'simplemocha:full']);
grunt.registerTask('cover', 'exec:cover');
- grunt.registerTask('default', ['jshint', 'test']);
+ grunt.registerTask('default', 'test');
};
View
2 lib/core/resolvers/GitHubResolver.js
@@ -77,7 +77,7 @@ GitHubResolver.prototype._checkout = function () {
// Progress
msg = 'received ' + (state.received / 1024 / 1024).toFixed(1) + 'MB ';
- msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ',
+ msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ';
msg += state.percent + '%';
that._logger.info('progress', msg);
})
View
2 lib/core/resolvers/UrlResolver.js
@@ -139,7 +139,7 @@ UrlResolver.prototype._download = function () {
// Progress
msg = 'received ' + (state.received / 1024 / 1024).toFixed(1) + 'MB ';
- msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ',
+ msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ';
msg += state.percent + '%';
that._logger.info('progress', msg);
})

0 comments on commit 1cec48c

Please sign in to comment.