🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

gulp-jscs-custom

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jscs-custom

Gulp plugin for JSCS with custimizable reporter, and with file outputs, i.e. Jenkins-friendly Checkstyle

0.1.6
latest
Source
npm
Version published
Weekly downloads
50
212.5%
Maintainers
1
Weekly downloads
 
Created
Source

Gulp JSCS Custom Reporter

Information

Packagegulp-jscs-custom
DescriptionGulp plugin for JSCS with custimizable reporters, including Jenkins-friendly Checkstyle. You can output files too.
Node Version>= 0.4

Install

npm install gulp-jscs-custom --save-dev

Usage

var gulp = require('gulp'),
    jscs = require('gulp-jscs-custom');

gulp.task('checkstyle', function () {
    return gulp.src('./**/*.js')
        .pipe(jscs({
            esnext: false,
            configPath: '.jscsrc',
            reporter: 'checkstyle',
            filePath: './jscs.xml',
            failOnError: false
        }));
});

Options

OptionTypeDescriptionDefault value
esnextBooleanJSCS's option to parse esnext```javascript false ```
configPathStringPath to JSCS Config```javascript '.jscsrc' ```
reporterString Which reporter JSCS will use. Options include:
**JSCS Reporters**: 'console' * * 'inline' * * 'junit' * * 'text' * You can also set the file path to a custom reporter.
```javascript 'console' ```
filePathStringOutput file path. If set to `null` will print to stdout```javascript null ```
failOnErrorBooleanIf true, gulp task will break if JSCS finds any linting error```javascript false ```
alwaysCreateReportBooleanCreate the report even if no errors were found```javascript false ```

Keywords

Gulp

FAQs

Package last updated on 01 Jul 2015

Did you know?

Socket

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