Skip to content

Commit

Permalink
feat(htmllint) add htmllint jenkins report
Browse files Browse the repository at this point in the history
- add jenkins flag
- generate htmllint checksytle report file

use grunt htmllint --jenkins to generate report
  • Loading branch information
flegris-orange committed Mar 24, 2016
1 parent 79c5b92 commit 386b993
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ _gh_pages
dist
js/dist
docs/assets/css
docs/dist
docs/dist

# Jenkins
reports
4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module.exports = function (grunt) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
};

/* Jenkins flag */
var JENKINS = grunt.option('jenkins');
/* boosted mod */
var serveStatic = require('serve-static');
/* end mod */
Expand Down Expand Up @@ -477,6 +479,8 @@ module.exports = function (grunt) {

htmllint: {
options: {
reporter: JENKINS && 'checkstyle',
reporterOutput: JENKINS && 'reports/htmllint.xml',
ignore: [
'Element “img” is missing required attribute “src”.',
/* boosted mod Src : https://www.w3.org/TR/html-aria/ */
Expand Down

0 comments on commit 386b993

Please sign in to comment.