Socket
Socket
Sign inDemoInstall

jshint-checkstyle-file-reporter

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jshint-checkstyle-file-reporter

JSHint checkstyle reporter which outputs to a file


Version published
Weekly downloads
10
decreased by-61.54%
Maintainers
1
Install size
4.46 kB
Created
Weekly downloads
 

Readme

Source

JSHint checkstyle file reporter

Writes checkstyle output to a file. This can be used to report JSHint results to Jenkins.

Usage

Standard JSHint cli

# optional specify a different filename
export JSHINT_CHECKSTYLE_FILE="jshint.xml" # default: checkstyle.xml
# run jshint
jshint --reporter node_modules/jshint-checkstyle-file-reporter *.js

Gulp

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var checkstyleFileReporter = require('jshint-checkstyle-file-reporter');

// optional specify a different filename:
process.env.JSHINT_CHECKSTYLE_FILE = 'jshint.xml'; // default: checkstyle.xml

gulp.task('jshint', function() {
	gulp.src('*.js')
		.pipe(jshint())
		.pipe(jshint.reporter(checkstyleFileReporter));
});

Keywords

FAQs

Last updated on 14 Mar 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc