Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*-cov

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"./src/cli.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html"
],
"after_script": [
"npm run coveralls",
"./test-infra/s3_cache.py upload npm-modules",
"./test-infra/s3_cache.py upload rubygems"
],
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Bootlint
[![NPM version](https://badge.fury.io/js/bootlint.svg)](http://badge.fury.io/js/bootlint)
[![Build Status](https://travis-ci.org/twbs/bootlint.svg?branch=master)](https://travis-ci.org/twbs/bootlint)
[![Coverage Status](https://img.shields.io/coveralls/twbs/bootlint.svg?branch=master)](https://coveralls.io/r/twbs/bootlint)
[![Dependency Status](https://david-dm.org/twbs/bootlint.svg)](https://david-dm.org/twbs/bootlint)
[![devDependency Status](https://david-dm.org/twbs/bootlint/dev-status.svg)](https://david-dm.org/twbs/bootlint#info=devDependencies)

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"license": "MIT",
"devDependencies": {
"coveralls": "^2.11.2",
"grunt-banner": "^0.2.3",
"grunt-browserify": "^3.0.1",
"grunt-contrib-clean": "^0.6.0",
Expand All @@ -38,7 +39,9 @@
"grunt-exec": "^0.4.6",
"grunt-jscs": "^0.7.1",
"jquery": "~2.1.1",
"jscoverage": "^0.5.6",
"load-grunt-tasks": "^0.6.0",
"nodeunit": "^0.9.0",
"npm-shrinkwrap": "^4.0.0",
"time-grunt": "^1.0.0"
},
Expand All @@ -63,6 +66,7 @@
"LICENSE"
],
"scripts": {
"test": "grunt test"
"test": "grunt test",
"coveralls": "jscoverage src && BOOTLINT_COV=1 nodeunit --reporter=lcov test | coveralls"
}
}
5 changes: 5 additions & 0 deletions src/bootlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ var semver = require('semver');
var allLinters = {};
function addLinter(id, linter) {
if (allLinters[id]) {
/* @covignore */
throw new Error("Linter already registered with ID: " + id);
}

Expand All @@ -178,6 +179,7 @@ var semver = require('semver');
Problem = LintWarning;
}
else {
/* @covignore */
throw new Error("Invalid linter ID: " + id);
}

Expand Down Expand Up @@ -214,6 +216,7 @@ var semver = require('semver');
};
}
else {
/* @covignore */
return function lintDoctype($, reporter) {
/*eslint-disable no-undef, block-scoped-var */
var doc = window.document;
Expand Down Expand Up @@ -317,6 +320,7 @@ var semver = require('semver');
catch (e) {
// deliberately do nothing
}
/* @covignore */
if (theWindow) {
// check browser global jQuery
var globaljQuery = theWindow.$ || theWindow.jQuery;
Expand Down Expand Up @@ -723,6 +727,7 @@ var semver = require('semver');
}
else {
// jQuery; in-browser
/* @covignore */
(function () {
var $ = cheerio;
/**
Expand Down
Loading