-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Setting 'warning' in SeverityLevelsConfig should unset 'error' #409
Comments
I see what is going on here. type_body_length:
warning: 400
error: 700 # something higher than 400 @jpsim we should consider if we should allow warning levels to be set higher than error levels. I see validity in each approach. |
@scottrhoyt we could consider it a configuration error (e.g. throw |
@jpsim I think I like the latter route better because the former requires that we expose the knowledge of rules with increasing warning/error thresholds (e.g. |
Agreed. I've updated this issue title to better track that. |
@scottrhoyt I came across the same problem today and prepared a pull request (#431) similar to the solution you agreed on before I found this issue. |
Thanks for the contribution @robinkunde, the SwiftLint community appreciates it! Looking forward to checking it out. |
Yup! Thanks for being ever vigilant! |
I am getting false positive error messages from
swiftlint
version0.6.0
.Here's a picture that describes it the best.
.swiftlint.yml
looks like this:The error stays no matter what, even if I bump some values, for example, increasing
type_body_length
to700
:The text was updated successfully, but these errors were encountered: