File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -9878,6 +9878,7 @@ var cheerio = require('cheerio');
9878
9878
*/
9879
9879
exports . showLintReportForCurrentDocument = function ( disabledIds ) {
9880
9880
var seenLint = false ;
9881
+ var errorCount = 0 ;
9881
9882
var reporter = function ( lint ) {
9882
9883
var background = "background: #" + ( lint . id [ 0 ] === "W" ? "f0ad4e" : "d9534f" ) + "; color: #ffffff;" ;
9883
9884
if ( ! seenLint ) {
@@ -9887,8 +9888,13 @@ var cheerio = require('cheerio');
9887
9888
seenLint = true ;
9888
9889
}
9889
9890
console . warn ( "bootlint: %c " + lint . id + " " , background , lint . message ) ;
9891
+ errorCount ++ ;
9890
9892
} ;
9891
9893
this . lintCurrentDocument ( reporter , disabledIds ) ;
9894
+
9895
+ if ( errorCount > 0 ) {
9896
+ console . log ( "For details, look up the lint problem IDs in the Bootlint wiki: https://github.com/twbs/bootlint/wiki" ) ;
9897
+ }
9892
9898
} ;
9893
9899
/*eslint-disable no-undef, block-scoped-var */
9894
9900
window . bootlint = exports ;
Original file line number Diff line number Diff line change @@ -678,6 +678,7 @@ var cheerio = require('cheerio');
678
678
*/
679
679
exports . showLintReportForCurrentDocument = function ( disabledIds ) {
680
680
var seenLint = false ;
681
+ var errorCount = 0 ;
681
682
var reporter = function ( lint ) {
682
683
var background = "background: #" + ( lint . id [ 0 ] === "W" ? "f0ad4e" : "d9534f" ) + "; color: #ffffff;" ;
683
684
if ( ! seenLint ) {
@@ -687,8 +688,13 @@ var cheerio = require('cheerio');
687
688
seenLint = true ;
688
689
}
689
690
console . warn ( "bootlint: %c " + lint . id + " " , background , lint . message ) ;
691
+ errorCount ++ ;
690
692
} ;
691
693
this . lintCurrentDocument ( reporter , disabledIds ) ;
694
+
695
+ if ( errorCount > 0 ) {
696
+ console . log ( "For details, look up the lint problem IDs in the Bootlint wiki: https://github.com/twbs/bootlint/wiki" ) ;
697
+ }
692
698
} ;
693
699
/*eslint-disable no-undef, block-scoped-var */
694
700
window . bootlint = exports ;
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ patterns.forEach(function (pattern) {
35
35
} ) ;
36
36
} ) ;
37
37
38
+ console . log ( "" ) ;
39
+
40
+ if ( totalErrCount > 0 ) {
41
+ console . log ( "For details, look up the lint problem IDs in the Bootlint wiki: https://github.com/twbs/bootlint/wiki" ) ;
42
+ }
43
+
38
44
console . log ( "" + totalErrCount + " lint error(s) found across " + totalFileCount + " file(s)." ) ;
39
45
if ( totalErrCount ) {
40
46
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments