Fixit icon indicating copy to clipboard operation
Fixit copied to clipboard

apply_fix is too slow

Open sk- opened this issue 5 years ago • 0 comments

Currently apply_fix is too slow. I reckon this is due to the fact that if a file has many violations, the linter will be run as many times. For LibCST it too several minutes to just fix one of the affected files.

The code says:

Applying a single fix at a time prevents the scenario where multiple autofixes combine in a way that results in invalid code.

What do you think of applying all the fixes with disjoint line ranges?

sk- avatar Dec 28 '20 13:12 sk-