eslint-bamboo-formatter
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"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", |
@@ -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 @@ }); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
6285
86
41
3