Skip to content

Commit 1cec48c

Browse files
committed
Fixed JSHint errors so that it can be turned on in Travis
1 parent fd58a5f commit 1cec48c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"plusplus": false,
2727
"regexp": false,
2828
"undef": true,
29-
"unused": true,
29+
"unused": "vars",
3030
"quotmark": "single",
3131
"strict": false,
3232
"trailing": true,

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function (grunt) {
44
options: {
55
jshintrc: '.jshintrc'
66
},
7-
files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*.js', '!test/assets/**/*']
7+
files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*.js', '!test/assets/**/*', '!test/reports/**/*']
88
},
99
simplemocha: {
1010
options: {
@@ -42,7 +42,7 @@ module.exports = function (grunt) {
4242
grunt.loadNpmTasks('grunt-exec');
4343

4444
grunt.registerTask('assets', ['exec:assets-force']);
45-
grunt.registerTask('test', ['exec:assets', 'simplemocha:full']);
45+
grunt.registerTask('test', ['jshint', 'exec:assets', 'simplemocha:full']);
4646
grunt.registerTask('cover', 'exec:cover');
47-
grunt.registerTask('default', ['jshint', 'test']);
47+
grunt.registerTask('default', 'test');
4848
};

lib/core/resolvers/GitHubResolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ GitHubResolver.prototype._checkout = function () {
7777

7878
// Progress
7979
msg = 'received ' + (state.received / 1024 / 1024).toFixed(1) + 'MB ';
80-
msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ',
80+
msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ';
8181
msg += state.percent + '%';
8282
that._logger.info('progress', msg);
8383
})

lib/core/resolvers/UrlResolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ UrlResolver.prototype._download = function () {
139139

140140
// Progress
141141
msg = 'received ' + (state.received / 1024 / 1024).toFixed(1) + 'MB ';
142-
msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ',
142+
msg += 'of ' + (state.total / 1024 / 1024).toFixed(1) + 'MB downloaded, ';
143143
msg += state.percent + '%';
144144
that._logger.info('progress', msg);
145145
})

0 commit comments

Comments
 (0)