Hi,
I'm running into an issue where we have multiple linters complaining about the same line of code.
Assume two linters (L-1 and L-2) affecting code line X
- L-1 and L-2 are run on code line X. Both fail. L-1 is an autofix linter.
- L-1 marks a suggestion and I accept it.
- L-2 would no longer fail given the new code, but it is not re-run.
arc lint fails with a lint error from L-2
My expectation is that since the code no longer fails lint, it shouldn't fail lint.
Me brainstorming potential outcomes:
- Multiple linters complaining about the same thing is a configuration problem. I need to fix my configuration.
- If an autofix makes a change to line X, re-run all linters that failed on line X
- If an autofix makes a change to line X, re-run all linters that would have linted line X
Downside to #1 is a situation where you have multiple linters that share some rules (eg disallow trailing whitespace).
Downside to #2 is that it wouldn't catch an autofix which broke a different linter (that was otherwise succeeding). That definitely feels like a configuration problem though (conflicting linters)
Downside to #3 is the obvious performance penalty.