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
Check function complexity
Keep the number of fields for classes under 15.
Class has too many getters
Keep number of public methods in classes under 10.
Duplicate array key
Remove error control operator.
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.