Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-bamboo-formatter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-bamboo-formatter - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

README.md

5

package.json
{
"name": "eslint-bamboo-formatter",
"version": "0.0.1",
"version": "0.1.0",
"description": "A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.",

@@ -30,4 +30,3 @@ "keywords": [

"readmeFilename": "README.md",
"dependencies": {
},
"dependencies": {},
"devDependencies": {

@@ -34,0 +33,0 @@ "eslint": "^1.5.1",

7

reporter.js

@@ -6,2 +6,3 @@ var fs = require('fs');

var filename = process.env.ESLINT_FILE || 'eslint.json';
var warningAsError = process.env.ESLINT_WARNING_AS_ERROR || false;

@@ -24,5 +25,7 @@ module.exports = function reporter(results) {

results.forEach(function iterator(result) {
var errorCount = warningAsError ? (result.errorCount + result.warningCount) : result.errorCount;
output.stats.tests++;
if (result.errorCount) {
if (errorCount) {
output.stats.failures++;

@@ -33,3 +36,3 @@ output.failures.push({

duration: 0,
errorCount: result.errorCount,
errorCount: errorCount,
error: util.format(result),

@@ -36,0 +39,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc