Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

API getResult is returning errors that were auto fixed. #2776

Closed
alan-agius4 opened this issue May 17, 2017 · 3 comments
Closed

API getResult is returning errors that were auto fixed. #2776

alan-agius4 opened this issue May 17, 2017 · 3 comments

Comments

@alan-agius4
Copy link
Contributor

alan-agius4 commented May 17, 2017

Bug Report

  • TSLint version: 5.2.0
  • TypeScript version: 2.3.x
  • Running TSLint via: Node.js API

Actual behavior

I am using the API to lint my ts lint, and I am using the getResult method. however this is also returning errors of lint rules that were fixed. Is there a way to filter only rules that were not fixed?

Expected behavior

Lint errors that are fixed are not returned

@adidahiya
Copy link
Contributor

No, but we'd take a PR to add support for this in the API.

@alan-agius4
Copy link
Contributor Author

alan-agius4 commented May 17, 2017

well, just checked a bit in 5.0.0 and 5.1.0 it was behaving as expected. I also tried the cli and there is the same problem with 5.2.0

tslint -c tslint.json ./src/**/*.ts --format stylish --fix

will return the below 5.1.0 & 5.2.0 but not in 5.0.0

src/json.ts
ERROR: 28:45  semicolon  Missing semicolon

Seems like the issue was created with this PR: #2421

@alan-agius4
Copy link
Contributor Author

Just realised it was fixed in #2667

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants