File tree 2 files changed +9
-0
lines changed
airbase-policy/src/main/resources/checkstyle
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ Airbase 149
2
2
* Remove bval dependency
3
3
* Checkstyle updates:
4
4
- Disallow single-line non-empty lambda and method body code blocks.
5
+ - Require exactly one space between array type and array initializer.
5
6
* Plugin updates:
6
7
- git-commit-id-maven-plugin 7.0.0 (from 6.0.0)
7
8
- spotbugs-maven-plugins 4.8.1.0 (from 4.7.3.6)
Original file line number Diff line number Diff line change 272
272
<property name =" ignoreComments" value =" true" />
273
273
</module >
274
274
275
+ <module name =" RegexpSinglelineJava" >
276
+ <!-- Forbid "new Type[]{", IntelliJ would reformat adding a space -->
277
+ <!-- Forbid "new Type[] {", IntelliJ would reformat removing a space -->
278
+ <property name =" format" value =" new\s++\w++(< \?> )?(\[\])++(?! )\s*+\{" />
279
+ <property name =" message" value =" Incorrect whitespace before array initializer" />
280
+ <property name =" ignoreComments" value =" true" />
281
+ </module >
282
+
275
283
<!-- javadoc -->
276
284
<module name =" RequireEmptyLineBeforeBlockTagGroup" />
277
285
<module name =" NonEmptyAtclauseDescription" />
You can’t perform that action at this time.
0 commit comments