CFLint icon indicating copy to clipboard operation
CFLint copied to clipboard

Consider supporting autofix.

Open ryaneberly opened this issue 7 years ago • 1 comments

---- from @denuno That would be a pretty interesting thing to have in CFLint itself, actually, along with a mode where you could enable auto-fixing (or maybe auto-ignoring)... e.g. instead of just warning about an unscoped var, optionally have it var scope it... yeah, something like enabling "suggestions", where it says what rule is broke and then also (if it is easy to figure out) shows a proposed fix.

Something to think about at least. For sure would want it to be optional, as something like that would slow things down a bit I reckon.

ryaneberly avatar Jul 28 '17 00:07 ryaneberly

For this to work, you need accurate locations/ranges. I have implemented this myself in my VS Code extension for some of the simple rules, but it doesn't always work as expected due to inaccurate location reporting.

Blockers: #570, #522

KamasamaK avatar Feb 14 '19 19:02 KamasamaK