eslint-bamboo-formatter
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "eslint-bamboo-formatter", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -24,3 +24,5 @@ var fs = require('fs'); | ||
results.forEach(function iterator(result) { | ||
var errorCount = warningAsError ? (result.errorCount + result.warningCount) : result.errorCount; | ||
var errorCount = warningAsError | ||
? result.errorCount + result.warningCount | ||
: result.errorCount; | ||
@@ -49,10 +51,8 @@ output.stats.tests++; | ||
fs.writeFileSync(filename, JSON.stringify(output, null, 2), 'utf-8'); | ||
// console.log(results); | ||
// var lintReporter = new LintReporter(); | ||
// var data = lintReporter.runReport(results, true, false); | ||
// | ||
// return templateUtils.applyTemplates(data); | ||
try { | ||
fs.writeFileSync(filename, JSON.stringify(output, null, 2), 'utf-8'); | ||
process.exit(); | ||
} catch (err) { | ||
process.exit(1); | ||
} | ||
}; |
@@ -1,2 +0,2 @@ | ||
var decodeXML = require("entities").decodeXML; | ||
var decodeXML = require('entities').decodeXML; | ||
@@ -3,0 +3,0 @@ function format(result) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70
5337
6