From 322350eda650302a488a1d8933b421c84f1882b8 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 6 Sep 2016 18:56:26 +0100 Subject: [PATCH] AvoidInlineConditionals: enabled --- README.md | 10 +++++----- src/main/resources/net/kemitix/checkstyle.xml | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da93703..35c34cb 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty * [AvoidDefaultSerializableInInnerClasses](#avoiddefaultserializableininnerclasses) - sevntu - disabled * [AvoidEscapedUnicodeCharacters](#avoidescapedunicodecharacters) - checkstyle - enabled * [AvoidHidingCauseException](#avoidhidingcauseexception) - sevntu - enabled -* [AvoidInlineConditionals](#avoidinlineconditionals) - checkstyle - disabled +* [AvoidInlineConditionals](#avoidinlineconditionals) - checkstyle - enabled * [AvoidModifiersForTypes](#avoidmodifiersfortypes) - sevntu - disabled * [AvoidNestedBlocks](#avoidnestedblocks) - checkstyle - enabled * [AvoidNotShortCircuitOperatorsForBoolean](#avoidnotshortcircuitoperatorsforboolean) - sevntu - enabled @@ -414,6 +414,10 @@ Invalid: 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) 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. -#### [AvoidInlineConditionals](http://checkstyle.sourceforge.net/config_coding.html#AvoidInlineConditionals) - -> TODO: enable - #### [EqualsAvoidNull](http://checkstyle.sourceforge.net/config_coding.html#EqualsAvoidNull) > TODO: enable diff --git a/src/main/resources/net/kemitix/checkstyle.xml b/src/main/resources/net/kemitix/checkstyle.xml index f0e16f6..459fa79 100644 --- a/src/main/resources/net/kemitix/checkstyle.xml +++ b/src/main/resources/net/kemitix/checkstyle.xml @@ -39,6 +39,7 @@ +