Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Add support for diagnostics suppressions #123

Merged
merged 4 commits into from
Mar 3, 2020
Merged

Add support for diagnostics suppressions #123

merged 4 commits into from
Mar 3, 2020

Conversation

sebmck
Copy link
Contributor

@sebmck sebmck commented Mar 3, 2020

This is necessary for #20. Right now suppressions will take the form of:

// rome-suppress categoryName

This same suppression logic is used for all diagnostics produced by Rome. This supports multiple categories for suppressions.

We can bikeshed on the actual comment prefix later, whether it's rome-ignore, rome-suppress, @rome-ignore, or whatever.

We may also want to enforce a suppression description.

One side effect of the suppressions is that it also works for suppressing syntax errors... Not sure if we want to keep that, but it's cool.

@sebmck sebmck merged commit cbb57a6 into master Mar 3, 2020
@sebmck sebmck deleted the suppressions branch March 3, 2020 21:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants