01: /**
02: * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03: */package net.sourceforge.pmd.rules;
04:
05: import net.sourceforge.pmd.AbstractRule;
06: import net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration;
07:
08: public class ClassNamingConventions extends AbstractRule {
09:
10: public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
11: if (Character.isLowerCase(node.getImage().charAt(0))) {
12: addViolation(data, node);
13: }
14: return data;
15: }
16: }
|