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

Override diagnostic severity for a specific source #494

Answered by jose-elias-alvarez
doums asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately we don't handle this case currently. Broadly speaking, we don't have a way for users to customize what sources do with their output. It's something I want to think about more, but short of making built-ins into a class (which is sensible, but would break existing configs) I can't think of a good solution right now.

In the meantime, we could expose default_severity as an option. At the moment, all unspecified severities fall back to error, which is what you are seeing with cspell, but we could allow users to configure it. Would that help?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@fragov
Comment options

@jose-elias-alvarez
Comment options

@fragov
Comment options

@doums
Comment options

Answer selected by jose-elias-alvarez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants