Allow Rule.custom
to specify severity when reporting multiple
#8294
Labels
Rule.custom
to specify severity when reporting multiple
#8294
Is your feature request related to a problem? Please describe.
It is annoying that reaching for
Rule.custom
is not enough to hand-pick the severity. In particular when mixing logic that may produce both errors and warnings. This results in unneeded complexity (as the same logic to inspect the value is split across different rules).Multiple rules are needed and need to be nested where already using
Rule.custom
should permit maximal customization.Creating custom warnings, mixed with errors, currently requires:
I guess one could make a helper function that splits an implementation:
Describe the solution you'd like
Then use it like so:
The text was updated successfully, but these errors were encountered: