
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
gulp-htmlhint-checkstyle-file-reporter
Advanced tools
Writes checkstyle output to a file. This can be used to report gulp-htmlhint results to Jenkins.
$ npm i -D gulp-htmlhint-checkstyle-file-reporter
var gulp = require('gulp')
var del = require('del')
var vinylPaths = require('vinyl-paths')
var htmlhint = require('gulp-htmlhint')
var concat = require('gulp-concat')
var header = require('gulp-header')
var footer = require('gulp-footer')
var REPORT_DIR = 'reports/'
var FILE_NAME = 'htmlhint-checkstyle.xml'
// You can specify file name optionally,
// default file name is 'htmlhint-checkstyle.xml'
process.env.HTMLHINT_CHECKSTYLE_FILE = REPORT_DIR + FILE_NAME
gulp.task('htmlhint', ['clean'], function () {
gulp.src('app/**/*.html')
.pipe(htmlhint('.htmlhintrc'))
.pipe(htmlhint.reporter('gulp-htmlhint-checkstyle-file-reporter'))
.pipe(gulp.dest(REPORT_DIR + '.tmp'))
.on('end', function () {
gulp.src(REPORT_DIR + '*.tmp.*')
.pipe(vinylPaths(del))
.pipe(concat(FILE_NAME))
.pipe(header('<?xml version="1.0" encoding="utf-8"?>\n<checkstyle version="4.3">\n'))
.pipe(footer('\n</checkstyle>'))
.pipe(gulp.dest(REPORT_DIR))
.on('end', function () {
del([REPORT_DIR + '.tmp'])
})
})
})
FAQs
gulp-htmlhint checkstyle file reporter
The npm package gulp-htmlhint-checkstyle-file-reporter receives a total of 25 weekly downloads. As such, gulp-htmlhint-checkstyle-file-reporter popularity was classified as not popular.
We found that gulp-htmlhint-checkstyle-file-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.