Skip to content

Rethink the fix limit flag #429

Open
@jackfirth

Description

@jackfirth

Resyntax allows limiting the number of fixes it will apply via a --max-fixes flag. When used with the Autofixer, this can result in confusion because Resyntax will leave files in a partially fixed state. It can be difficult to tell if a fix was skipped because Resyntax couldn't refactor it, because Resyntax hit the fix limit, or some other reason.

This ought to be redesigned so that Autofixer pull requests are clearer. Ideally, Resyntax would either fully fix files or not fix them at all, or it would fully fix a very clear chunk of the file in the case of large files. The modified line limit interacts with this too and makes things more complicated. Further thought required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions