NoWhitespaceAfter: prevent whitespace and new line after dot separator
This commit is contained in:
parent
bb3aec4ab6
commit
109276cdea
2 changed files with 4 additions and 2 deletions
|
@ -1643,8 +1643,6 @@ int[ ] a;
|
||||||
int d = a[ 2];
|
int d = a[ 2];
|
||||||
````
|
````
|
||||||
|
|
||||||
> TODO: tokens = DOT & allowLineBreaks = false
|
|
||||||
|
|
||||||
#### [NoWhitespaceBefore](http://checkstyle.sourceforge.net/config_whitespace.html#NoWhitespaceBefore)
|
#### [NoWhitespaceBefore](http://checkstyle.sourceforge.net/config_whitespace.html#NoWhitespaceBefore)
|
||||||
|
|
||||||
Checks that there is no whitespace before the comma operator (','), statement terminator (';'), postfix increment ('++') or postfix decrement ('--').
|
Checks that there is no whitespace before the comma operator (','), statement terminator (';'), postfix increment ('++') or postfix decrement ('--').
|
||||||
|
|
|
@ -149,6 +149,10 @@
|
||||||
<module name="NoClone"/> <!-- prevent overriding Object.clone() -->
|
<module name="NoClone"/> <!-- prevent overriding Object.clone() -->
|
||||||
<module name="NonEmptyAtclauseDescription"/> <!-- javadoc tags have descriptions -->
|
<module name="NonEmptyAtclauseDescription"/> <!-- javadoc tags have descriptions -->
|
||||||
<module name="NoWhitespaceAfter"/> <!-- prevent white space after tokens -->
|
<module name="NoWhitespaceAfter"/> <!-- prevent white space after tokens -->
|
||||||
|
<module name="NoWhitespaceAfter"> <!-- prevent white space and line breaks after . separator-->
|
||||||
|
<property name="tokens" value="DOT"/>
|
||||||
|
<property name="allowLineBreaks" value="false"/>
|
||||||
|
</module>
|
||||||
<module name="NoWhitespaceBefore"/> <!-- prevent white space before tokens -->
|
<module name="NoWhitespaceBefore"/> <!-- prevent white space before tokens -->
|
||||||
<module name="NPathComplexity"> <!-- restrict method complexity -->
|
<module name="NPathComplexity"> <!-- restrict method complexity -->
|
||||||
<property name="max" value="400"/>
|
<property name="max" value="400"/>
|
||||||
|
|
Loading…
Reference in a new issue