-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
I just found a bug after a hard search, and I had written this:
itemState.learningAspect == LearningAspect.learnContext;
instead of
itemState.learningAspect = LearningAspect.learnContext;
Is it possible for a lint rule to have caught this? (A better font would have helped me too)
ie. this should be flagged:
var x = 1;
x == 2; // <===. would love this to be a lint error: "statement yields an unused boolean"
It's probably a warning, rather than an error - though I honestly can't imagine anyone really wanting to write a line like that, no matter how complex, but appreciate there may be a reason I can't think of.
There are probably some complexities around function calls. For example, if f() returns a boolean:
f();
In this case, I'm less certain that I want it flagged.
Thank you.
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug