eslint-teamcity
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "eslint-teamcity", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An ESLint formatter plugin for TeamCity", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha" | ||
}, | ||
@@ -22,3 +22,7 @@ "repository": { | ||
"url": "https://github.com/andreogle/eslint-teamcity/issues" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"mocha": "^2.4.5" | ||
} | ||
} |
# eslint-teamcity | ||
[![npm version](https://badge.fury.io/js/eslint-teamcity.svg)](https://badge.fury.io/js/eslint-teamcity) | ||
[![Build Status](https://travis-ci.org/andreogle/eslint-teamcity.svg?branch=master)](https://travis-ci.org/andreogle/eslint-teamcity) | ||
> A small [eslint](https://github.com/eslint/eslint) formatter plugin. | ||
ESLint violations are output nicely in the | ||
[TeamCity](https://www.jetbrains.com/teamcity/) build error format. | ||
[TeamCity](https://www.jetbrains.com/teamcity/) build error format. Tested with | ||
TeamCity 9.1.x | ||
@@ -7,0 +10,0 @@ ## Installation |
/** | ||
* @fileoverview Teamcity report formatter plugin for ESLint | ||
* @fileoverview TeamCity report formatter plugin for ESLint | ||
* @author Andre Ogle | ||
@@ -14,2 +14,4 @@ */ | ||
* Escape special characters with the respective TeamCity escaping. | ||
* See below link for list of special characters: | ||
* https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity | ||
* @param {string} str An error message to display in TeamCity. | ||
@@ -27,5 +29,5 @@ * @returns {string} An error message formatted for display in TeamCity | ||
.replace(/\r/g, '|r') | ||
.replace(/\u0085/g, '|x') | ||
.replace(/\u2028/g, '|l') | ||
.replace(/\u2029/g, '|p') | ||
.replace(/\u0085/g, '|x') // TeamCity 6 | ||
.replace(/\u2028/g, '|l') // TeamCity 6 | ||
.replace(/\u2029/g, '|p') // TeamCity 6 | ||
.replace(/\[/g, '|[') | ||
@@ -32,0 +34,0 @@ .replace(/\]/g, '|]'); |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
8364
9
136
1
58
2