diff options
-rw-r--r-- | tasks/bootlint.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tasks/bootlint.js b/tasks/bootlint.js index 9208662..feeaf21 100644 --- a/tasks/bootlint.js +++ b/tasks/bootlint.js @@ -77,12 +77,12 @@ module.exports = function(grunt) { var fileStr = grunt.util.pluralize(totalFileCount, 'file/files'); if (totalErrCount > 0) { - if (options.showallerrors) { - grunt.fail.warn(totalErrCount + ' lint ' + errorStr + ' found across ' + totalFileCount + ' ' + fileStr + '.'); - } else { - grunt.log.writeln().fail(totalErrCount + ' lint ' + errorStr + ' found across ' + totalFileCount + ' ' + fileStr + '.'); - grunt.log.writeln().fail('For details, look up the lint problem IDs in the Bootlint wiki: https://github.com/twbs/bootlint/wiki'); - } + if (options.showallerrors) { + grunt.fail.warn(totalErrCount + ' lint ' + errorStr + ' found across ' + totalFileCount + ' ' + fileStr + '.'); + } else { + grunt.log.writeln().fail(totalErrCount + ' lint ' + errorStr + ' found across ' + totalFileCount + ' ' + fileStr + '.'); + grunt.log.writeln().fail('For details, look up the lint problem IDs in the Bootlint wiki: https://github.com/twbs/bootlint/wiki'); + } } else { grunt.log.ok(totalFileCount + ' ' + fileStr + ' lint free.'); } |