tslint-teamcity-reporter
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -42,4 +42,5 @@ "use strict"; | ||
var startPos = failure.getStartPosition().getLineAndCharacter(); | ||
var formattedMessage = "line " + startPos.line + ", col " + startPos.character + ", " + failure.getFailure(); | ||
var lineAndCharacter = failure.getStartPosition().getLineAndCharacter(); | ||
var lineAndColMessage = "line " + (lineAndCharacter.line + 1) + ", col " + (lineAndCharacter.character + 1); | ||
var formattedMessage = lineAndColMessage + ", " + failure.getFailure(); | ||
var isError = failure.getRuleSeverity() === 'error'; | ||
@@ -59,3 +60,3 @@ var severity = isError ? 'ERROR' : 'WARNING'; | ||
ruleName: result.ruleName, | ||
line: startPos.line | ||
line: lineAndCharacter.line + 1 | ||
})); | ||
@@ -62,0 +63,0 @@ }); |
{ | ||
"name": "tslint-teamcity-reporter", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "A TSLint formatter/reporter for use in TeamCity which groups by files using TeamCity Test Suite", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -106,7 +106,7 @@ # tslint-teamcity-reporter | ||
#### 2. From your package.json | ||
If you have a package.json file in the current directory, you can add an extra "tslint-teamcity" property to it: | ||
If you have a package.json file in the current directory, you can add an extra "tslint-teamcity-reporter" property to it: | ||
```json | ||
{ | ||
"tslint-teamcity": { | ||
"tslint-teamcity-reporter": { | ||
"reporter": "inspections", | ||
@@ -113,0 +113,0 @@ "report-name": "My TSLint Violations", |
231018
391