Socket
Socket
Sign inDemoInstall

gulp-jscs-custom

Package Overview
Dependencies
153
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
1
Install size
7.52 MB
Created

Readme

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

FAQs

Last updated on 01 Jul 2015

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