bitspook / eslint-bamboo-formatter

A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-bamboo-formatter

view on npm npm module downloads per month Dependency status

A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.

Installation

npm install eslint-bamboo-formatter

Usage

eslint file.js -f node_modules/eslint-bamboo-formatter/reporter.js
var eslint   = require('gulp-eslint');
var reporter = require('eslint-bamboo-formatter');

gulp.src(['js/**/*.js'])
  .pipe(eslint())
  .pipe(eslint.format(reporter));

Output

By default, the reporter writes to eslint.json. The file name can be changed by setting the ESLINT_FILE or ESLINT_BAMBOO_REPORT_FILE environment variable. Warnings are not reported by default. If you want to report warnings as errors, set the environment variable ESLINT_BAMBOO_REPORT_WARNING_AS_ERROR.

By default bamboo's report's test count will increase for every lint check that passes. If you prefer to increase the test count for failed checks only, you can set the environment variable ESLINT_BAMBOO_REPORT_IGNORE_SUCCESS

License

MIT

About

A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.

License:MIT License


Languages

Language:JavaScript 100.0%