-
Notifications
You must be signed in to change notification settings - Fork 394
AvoidUsingPositionalParameters does not seem to be triggered #863
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
Comments
You are right that the documentation does not match the implementation. I think warning would make more sense because not using positional parameters may cause a problem since the definition of warning level is:
You are also right that the 2nd example seems to be embarrassing because it is very similar to the example given in the rule documentation here, which does not work either (and I think the given example is not good either because the command in the string is confusing and has nothing to do with the rule/warning). But I think your first example suffers from the same issue as well because it does not produce I checked the existing test here, which uses So much about the current state but we can of course work together to improve the design. For sure, the documentation needs to be updated in the meantime. |
Thanks for the links.
For me it's more a problem of specification, what is the rule to respect? I am of the opinion of Keith, this would allow everyone to apply the rule according to his preferences. |
Ok. So basically what you want in a nutshell is the ability to override the default configuration of the threshold number? This could maybe be done via a new setting in the settings file. |
Yes. |
@LaurentDardenne Feel free to create a new, separate issue for your feature request of customizing the rule. |
Severity must be 'Information' or 'Warning' ?
The text was updated successfully, but these errors were encountered: