Skip to content

[feat] Ability to "Ignore" Certain Errors #138

@JHWelch

Description

@JHWelch

Hello! I really like how this project surfaces suggestions. It has been very helpful for fixing issues with my modules.

The perfectionist in me wants to be able to work through the entire list, but occasionally there are items that for whatever reason I may choose to not resolve, or are not relevant to the current module.

Would you be open to a sort of "Ignore" list? Similar to ESLint ignores or similar features in static analysis tools.

Proposed process

Parsing ignores inline may be fairly difficult, but we could add something like a .mmmignore file with a list of identifiers. Then give each error a unique, preferably immutable, id. So copy changes don't become breaking changes to the ignore file.

I think this could be relatively straight forward to add something like this. the addIssue would track issues as a Map instead of just an array, and then at the end of processing, remove all keys found in .mmmignore.

If there is any appetite for this as a feature I would not mind taking a stab at it, let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions