-
Notifications
You must be signed in to change notification settings - Fork 84
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
Group and decide which linting rules to include by default. #114
Comments
Proposing we assign the current rules to "groups". Something like: Bug Prone Correctness Bad Practice Security Code style/Documentation Modern Syntax And I suggest we include all groups except "Code style/documentation" (and possibly "Modern syntax) by default. Thoughts? |
Nice grouping. I'd split out the following into a new group as these are less about style and more about maintainability/complexity/lack of abstraction etc: |
ARG_TYPE_ANY could possible also go into this new group, but also fine where it is. |
Good feedback. I like it. Complexity |
Also add to same group: |
also add (and there's more to come): Poor Naming: |
Also in code style add: |
In bad practice add: |
Also add to complexity: |
with justinmclean's suggestions Bug Prone Correctness Bad Practice Security Code style/Documentation Modern Syntax Complexity Poor Naming: |
Love'n the groups! I just added a GUI for CFLint to CFEclipse, and these groups would help organize it better. To make editing/keeping track easier, I created a wiki page for the group list here: https://github.com/cflint/CFLint/wiki/Rule-Groups Would the groups define the rules, or would we define the groups in the rules? Eg:
Would it be one group per rule, or could some rules be in more than one group? I think I like rules being able to be in more than one group, but it might be better if that's not allowed... |
I like the first option. |
java -jar CFLint-0.11.0.jar --listrulegroups java -jar CFLint-0.11.0.jar --rulegroups Naming,Complexity |
see #103
The text was updated successfully, but these errors were encountered: