Skip to content

Autocorrect? #330

Description

@davidtheclark

I thought I'd throw out this idea:

If a person wanted to build a library that looked for the same code style issues but instead of warning about them, corrected them automatically — that person would have to rewrite the same logic that we have to find the issues, then just take a different action once they're found. Right?

Because of that duplication, I'm wondering if we who have already written the initial logic might want to take the next step and provide an autocorrect option for each rule. Or it could even be another "severity" number: 0 = ignore, 1 = warn, 2 = err, 3 = autocorrect. We could integrate autocorrect features gradually, and only on rules where it could be done accurately.

I do think the reaction "That should be a separate tool" makes some sense; but because so much of the core logic & problem solving would be duplicated, I don't know if the pure module-separation strategy would be worthwhile in this case.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions