New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting the level of every hint and warning #20905
Comments
We already have |
somewhat - but the way we interface with these is somewhat all over the place, specially when interacting with hints and style checks - ie the distinction between hint and warning is somewhat arbitrary, except for the "alert level" - Also, |
What exactly is the classifying difference between warnings and hints? Is it that one is off by default while the other is on? |
No, there is not much difference. A "hint" is benign, a "warning" deserves your attention. |
Summary
For every warning and hint, allow setting the level to
None
,Hint
,Warning
orError
- basically, for every "optional" diagnostic, it should be possible to set its effect on the compilation process.Description
The objective is that codebases that have addressed all instances of a particular kind can set that particular message to
Error
and prevent new instances from creeping into the codebase - the difference betweenHint
andWarning
in the compiler is somewhat subjective as well - some hints are appropriate as warnings/errors in some codebases while some warnings are not urgent in some contexts.Alternatives
No response
Standard Output Examples
No response
Backwards Compatibility
No response
Links
No response
The text was updated successfully, but these errors were encountered: