You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there should be no problem with negative numbers, instead it should just warn if the value is empty.
In addition, this code looks like it should push warnings, but this is resulting in an 'error' type. But we'll solve this by removing the null check , but still it seems to be an issue around warnings being treated as errors.
The text was updated successfully, but these errors were encountered:
I answered my question about why it's showing up as an error. the default severity is set to Critical.
I'm looking through the code, and it is fairly confusing how everything comes together between the Interfaces, paramaterized types, default severity, etc. You have to keep multiple things in your head at once in order to understand a simple check operation. One thing that is a challenging (it appears) is a checker producing errors and warnings in the same class, it seems like you have to specify that all checkers have one severity level and I think in order to get some checks to return warnings and others errors, you need distinct checker classes that will report one or the other.
For example (related to this issue) if i want to have some checks in Range to return errors, and others to be warnings, I'd have to define 2 separate factories (one for the warnings, one for the errors). I feel that the API would have been simpler to understand if it worked like a logging api where when you publish a check, you specify if the check is a warning or an error.
The way it's implemented, I have to potentially look up an inheritance tree to understand if the class is warning or erroring.
The RangeCheckFactory uses the following logic:
But there should be no problem with negative numbers, instead it should just warn if the value is empty.
In addition, this code looks like it should push warnings, but this is resulting in an 'error' type. But we'll solve this by removing the null check , but still it seems to be an issue around warnings being treated as errors.
The text was updated successfully, but these errors were encountered: