From 909603d7e0e98825bd3246a0e15df794ab2cfda5 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 18 Jul 2024 10:04:03 +0200 Subject: [PATCH] [apex] ClassNamingConventions - Improve tests for inner interfaces Refs #5048 --- .../codestyle/xml/ClassNamingConventions.xml | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml b/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml index eaa580e671..d065e91f2b 100644 --- a/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml +++ b/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml @@ -196,42 +196,40 @@ public enum FooEnum { } - Inner class naming convention, class name failed to match RegEx #5048 + #4800 #5048 Inner class/interface naming convention, names fail to match RegEx [A-Za-z] - 1 + [A-Za-z] + 2 - - Inner class has one standard, outer class has another, + #4800 #5048 Inner class/interface has one standard, outer class has another, and an inner enum has another (should pass.) * Inner class should be camel case. * Outer class should have a prefix (one character, all caps), underscore, then camel case. * Enum name should be all caps (not best practice!) - * See #5048 - [A-Za-z]+ [A-Z]_[A-Za-z]+ + [A-Za-z]+ + [A-Za-z]+ [A-Z]+ 0