Skip to content

Commit ccfd9a6

Browse files
committed
checkstyle.xml: enforce Java-style arrays
To quote Google's Java style guide: > The square brackets form a part of the type, not the variable: > String[] args, not String args[]. See: https://checkstyle.org/styleguides/google-java-style-20250426/javaguide.html
1 parent 27876c5 commit ccfd9a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

checkstyle.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ For more information on CheckStyle configurations below, see: http://checkstyle.
106106
<!-- Right braces should be on start of a new line (default value) -->
107107
<module name="RightCurly"/>
108108

109+
<!-- Enforce Java-style array declaration instead of C-style -->
110+
<module name="ArrayTypeStyle"/>
111+
109112
<!-- ##### Indentation / Whitespace requirements ##### -->
110113
<!-- Require 4-space indentation (default value) -->
111114
<module name="Indentation"/>

0 commit comments

Comments
 (0)