-
Notifications
You must be signed in to change notification settings - Fork 889
tslint saying "Fixes caused errors in ..." even though no fixes are asked #2400
Comments
That's a leftover debug message coming from Some background: The rule got refactored recently which removed the log message. This change will be shipped with [email protected] |
@ajafff I'm not sure I understand. Does it mean that tslint will be buggy with type checking until v5 is released? |
The rule works quite well right now. The message you are seeing is just printed when a certain condition is met (that is an import is not used, but needed by typescript's declaration emitter microsoft/TypeScript#5711). That doesn't mean there is anything wrong, it's just an unnecessary log message. |
@ajafff it does not, tslint does not return an error as it should: there is a linting error in the file and when I disable type checking, tslint does return an error! |
Ah, now I get it. |
We will see how it is with v5, but until then, for people like me using v4, I don't really understand why we can't do something about the buggy behaviour... If there is a problem during the checking of the rule, the rule should fail, not be skipped and the linting error ignored. |
closing as fixed in 5.x |
Bug Report
TypeScript code being linted
I can't find a way to make the problem smaller, but basically:
frontend
directoryyarn
ornpm install
(the first being better, also for reproducibility).src/app/core/core.module.ts
to beimport { NgModule, Component } from '@angular/core';
Actual behavior
Note that I don't even asked for fixes to be applied and that the return code is not a failure as it should.
Expected behavior
The error being properly detected, printed and the return code being 1.
The text was updated successfully, but these errors were encountered: