AvoidInlineConditionals: enabled
This commit is contained in:
parent
497afd2c68
commit
322350eda6
2 changed files with 6 additions and 5 deletions
10
README.md
10
README.md
|
@ -93,7 +93,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty
|
||||||
* [AvoidDefaultSerializableInInnerClasses](#avoiddefaultserializableininnerclasses) - sevntu - disabled
|
* [AvoidDefaultSerializableInInnerClasses](#avoiddefaultserializableininnerclasses) - sevntu - disabled
|
||||||
* [AvoidEscapedUnicodeCharacters](#avoidescapedunicodecharacters) - checkstyle - enabled
|
* [AvoidEscapedUnicodeCharacters](#avoidescapedunicodecharacters) - checkstyle - enabled
|
||||||
* [AvoidHidingCauseException](#avoidhidingcauseexception) - sevntu - enabled
|
* [AvoidHidingCauseException](#avoidhidingcauseexception) - sevntu - enabled
|
||||||
* [AvoidInlineConditionals](#avoidinlineconditionals) - checkstyle - disabled
|
* [AvoidInlineConditionals](#avoidinlineconditionals) - checkstyle - enabled
|
||||||
* [AvoidModifiersForTypes](#avoidmodifiersfortypes) - sevntu - disabled
|
* [AvoidModifiersForTypes](#avoidmodifiersfortypes) - sevntu - disabled
|
||||||
* [AvoidNestedBlocks](#avoidnestedblocks) - checkstyle - enabled
|
* [AvoidNestedBlocks](#avoidnestedblocks) - checkstyle - enabled
|
||||||
* [AvoidNotShortCircuitOperatorsForBoolean](#avoidnotshortcircuitoperatorsforboolean) - sevntu - enabled
|
* [AvoidNotShortCircuitOperatorsForBoolean](#avoidnotshortcircuitoperatorsforboolean) - sevntu - enabled
|
||||||
|
@ -414,6 +414,10 @@ Invalid:
|
||||||
String unitAbbrev = "\u03bcs";
|
String unitAbbrev = "\u03bcs";
|
||||||
````
|
````
|
||||||
|
|
||||||
|
#### [AvoidInlineConditionals](http://checkstyle.sourceforge.net/config_coding.html#AvoidInlineConditionals)
|
||||||
|
|
||||||
|
Prevents use of the `?:` operators.
|
||||||
|
|
||||||
#### [AvoidNestedBlocks](http://checkstyle.sourceforge.net/config_blocks.html#AvoidNestedBlocks)
|
#### [AvoidNestedBlocks](http://checkstyle.sourceforge.net/config_blocks.html#AvoidNestedBlocks)
|
||||||
|
|
||||||
Avoid unnecessary blocks.
|
Avoid unnecessary blocks.
|
||||||
|
@ -2609,10 +2613,6 @@ These checks are not enabled. Notes are included for each explaining why.
|
||||||
|
|
||||||
Couldn't get my IDE's (IntelliJ) code style to match.
|
Couldn't get my IDE's (IntelliJ) code style to match.
|
||||||
|
|
||||||
#### [AvoidInlineConditionals](http://checkstyle.sourceforge.net/config_coding.html#AvoidInlineConditionals)
|
|
||||||
|
|
||||||
> TODO: enable
|
|
||||||
|
|
||||||
#### [EqualsAvoidNull](http://checkstyle.sourceforge.net/config_coding.html#EqualsAvoidNull)
|
#### [EqualsAvoidNull](http://checkstyle.sourceforge.net/config_coding.html#EqualsAvoidNull)
|
||||||
|
|
||||||
> TODO: enable
|
> TODO: enable
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
<module name="AvoidEscapedUnicodeCharacters"> <!-- prevent use of obscure escape codes -->
|
<module name="AvoidEscapedUnicodeCharacters"> <!-- prevent use of obscure escape codes -->
|
||||||
<property name="allowEscapesForControlCharacters" value="true"/> <!-- unless non-printable controls -->
|
<property name="allowEscapesForControlCharacters" value="true"/> <!-- unless non-printable controls -->
|
||||||
</module>
|
</module>
|
||||||
|
<module name="AvoidInlineConditionals"/> <!-- detects ?: usage -->
|
||||||
<module name="AvoidNestedBlocks"/> <!-- avoid unnecessary blocks {} -->
|
<module name="AvoidNestedBlocks"/> <!-- avoid unnecessary blocks {} -->
|
||||||
<module name="AvoidStarImport"/> <!-- import package.* is not allowed -->
|
<module name="AvoidStarImport"/> <!-- import package.* is not allowed -->
|
||||||
<module name="AvoidStaticImport"> <!-- import static ... is not allowed -->
|
<module name="AvoidStaticImport"> <!-- import static ... is not allowed -->
|
||||||
|
|
Loading…
Reference in a new issue