Fixed #26
This commit is contained in:
@@ -16,7 +16,7 @@ public class MethodNamingConventionsRule extends AbstractApexRule {
|
||||
}
|
||||
|
||||
public Object visit(ASTMethod node, Object data) {
|
||||
if (isOverriddenMethod(node) || isPropertyAccessor(node)) {
|
||||
if (isOverriddenMethod(node) || isPropertyAccessor(node) || isConstructor(node)) {
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -38,4 +38,8 @@ public class MethodNamingConventionsRule extends AbstractApexRule {
|
||||
private boolean isPropertyAccessor(ASTMethod node) {
|
||||
return (node.getParentsOfType(ASTProperty.class).size() > 0);
|
||||
}
|
||||
|
||||
private boolean isConstructor(ASTMethod node) {
|
||||
return (node.getNode().getMethodInfo().isConstructor());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user