This repository was archived by the owner on Feb 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +463
-47
lines changed Expand file tree Collapse file tree 7 files changed +463
-47
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ lib-cov
12
12
13
13
# Coverage directory used by tools like istanbul
14
14
coverage
15
+ * -cov
15
16
16
17
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17
18
.grunt
Original file line number Diff line number Diff line change 22
22
" ./src/cli.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html"
23
23
],
24
24
" after_script " : [
25
+ " npm run coveralls" ,
25
26
" ./test-infra/s3_cache.py upload npm-modules" ,
26
27
" ./test-infra/s3_cache.py upload rubygems"
27
28
],
Original file line number Diff line number Diff line change 1
1
# Bootlint
2
2
[ ![ NPM version] ( https://badge.fury.io/js/bootlint.svg )] ( http://badge.fury.io/js/bootlint )
3
3
[ ![ Build Status] ( https://travis-ci.org/twbs/bootlint.svg?branch=master )] ( https://travis-ci.org/twbs/bootlint )
4
+ [ ![ Coverage Status] ( https://img.shields.io/coveralls/twbs/bootlint.svg?branch=master )] ( https://coveralls.io/r/twbs/bootlint )
4
5
[ ![ Dependency Status] ( https://david-dm.org/twbs/bootlint.svg )] ( https://david-dm.org/twbs/bootlint )
5
6
[ ![ devDependency Status] ( https://david-dm.org/twbs/bootlint/dev-status.svg )] ( https://david-dm.org/twbs/bootlint#info=devDependencies )
6
7
Original file line number Diff line number Diff line change 27
27
},
28
28
"license" : " MIT" ,
29
29
"devDependencies" : {
30
+ "coveralls" : " ^2.11.2" ,
30
31
"grunt-banner" : " ^0.2.3" ,
31
32
"grunt-browserify" : " ^3.0.1" ,
32
33
"grunt-contrib-clean" : " ^0.6.0" ,
38
39
"grunt-exec" : " ^0.4.6" ,
39
40
"grunt-jscs" : " ^0.7.1" ,
40
41
"jquery" : " ~2.1.1" ,
42
+ "jscoverage" : " ^0.5.6" ,
41
43
"load-grunt-tasks" : " ^0.6.0" ,
44
+ "nodeunit" : " ^0.9.0" ,
42
45
"npm-shrinkwrap" : " ^4.0.0" ,
43
46
"time-grunt" : " ^1.0.0"
44
47
},
63
66
" LICENSE"
64
67
],
65
68
"scripts" : {
66
- "test" : " grunt test"
69
+ "test" : " grunt test" ,
70
+ "coveralls" : " jscoverage src && BOOTLINT_COV=1 nodeunit --reporter=lcov test | coveralls"
67
71
}
68
72
}
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ var semver = require('semver');
167
167
var allLinters = { } ;
168
168
function addLinter ( id , linter ) {
169
169
if ( allLinters [ id ] ) {
170
+ /* @covignore */
170
171
throw new Error ( "Linter already registered with ID: " + id ) ;
171
172
}
172
173
@@ -178,6 +179,7 @@ var semver = require('semver');
178
179
Problem = LintWarning ;
179
180
}
180
181
else {
182
+ /* @covignore */
181
183
throw new Error ( "Invalid linter ID: " + id ) ;
182
184
}
183
185
@@ -214,6 +216,7 @@ var semver = require('semver');
214
216
} ;
215
217
}
216
218
else {
219
+ /* @covignore */
217
220
return function lintDoctype ( $ , reporter ) {
218
221
/*eslint-disable no-undef, block-scoped-var */
219
222
var doc = window . document ;
@@ -317,6 +320,7 @@ var semver = require('semver');
317
320
catch ( e ) {
318
321
// deliberately do nothing
319
322
}
323
+ /* @covignore */
320
324
if ( theWindow ) {
321
325
// check browser global jQuery
322
326
var globaljQuery = theWindow . $ || theWindow . jQuery ;
@@ -723,6 +727,7 @@ var semver = require('semver');
723
727
}
724
728
else {
725
729
// jQuery; in-browser
730
+ /* @covignore */
726
731
( function ( ) {
727
732
var $ = cheerio ;
728
733
/**
You can’t perform that action at this time.
0 commit comments