Skip to content

Commit 83d2415

Browse files
committed
Add checks for @NodeChildren and @NodeChild to have consistent ordering
1 parent 9ec05ad commit 83d2415

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/.checkstyle_checks.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@
153153
<property name="format" value="\.computeIfAbsent"/>
154154
<property name="message" value="Use ConcurrentOperations.getOrCompute() instead of ConcurrentHashMap.computeIfAbsent() which does not scale"/>
155155
</module>
156+
<module name="RegexpSinglelineJava">
157+
<property name="format" value="@NodeChildren"/>
158+
<property name="message" value="Do not use @NodeChildren, use multiple @Child annotations directly"/>
159+
</module>
160+
<module name="RegexpSinglelineJava">
161+
<property name="format" value="@NodeChild\(type"/>
162+
<property name="message" value="Use @NodeChild(value = ..., type = ...) for consistency"/>
163+
</module>
156164
</module>
157165
<!--<module name="RegexpHeader">-->
158166
<!--<property name="header" value="/\*\n \* Copyright \(c\) (20[0-9][0-9], )?20[0-9][0-9] Oracle and/or its affiliates. All rights reserved. This\n \* code is released under a tri EPL/GPL/LGPL license. You can use it,\n \* redistribute it and/or modify it under the terms of the:\n \*\n \* Eclipse Public License version 1\.0\n \* GNU General Public License version 2\n \* GNU Lesser General Public License version 2\.1\n \*/\n"/>-->

0 commit comments

Comments
 (0)