CyclomaticComplexity
Check cyclomatic complexity
Codiga provides multiple sets of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.
Check cyclomatic complexity
Check class complexity
Check class maximum number of lines
Check max number of lines of functions (100 by default)
Functions should not have more than 10 parameters
Classes should not have more than 55 attributes and functions
Avoid long variables names (more than 20 characters)
Check function complexity
Avoid short methods names (more than 3 characters)
Avoid short variables names (more than 3 charactrs)
Keep the number of fields for classes under 15.
Class has too many getters
Keep number of public methods in classes under 10.
Avoid unused local variables
Avoid unused private fields
Avoid unused private methods
Remove error control operator.
Avoid short class names.
Avoid using undefined variables, it will lead to PHP notices.
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.