Open
Description
Problem
By default, PHPMD has the following two checks which I believe are problematic:
- The camelCase variable names apply to Zend and Symfony but not Drupal and Wordpress.
- Avoiding "else" statements is controversial: I don't believe there is consensus that the use of else statements correlates with poor code. And it is a little redundant in that it would be caught by Cyclomatic Complexity and NPath Complexity metrics.
Proposed Resolution
- Turn off the CamelCaseClassName, CamelCasePropertyName, CamelCaseMethodName, CamelCaseParameterName, CamelCaseVariableName checks by default.
- Turn off the ElseExpression check by default.
Metadata
Assignees
Labels
No labels