Introduce "Redundant '?: return null'" inspection

#KT-34819 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-11-10 13:12:22 +01:00
committed by Vladimir Dolzhenko
parent 5f1cc3b152
commit 820b8c3c54
12 changed files with 162 additions and 0 deletions
@@ -3577,6 +3577,15 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.RedundantElvisReturnNullInspection"
displayName="Redundant '?: return null'"
groupPath="Kotlin"
groupName="Redundant constructs"
enabledByDefault="true"
level="WARNING"
language="kotlin"
/>
<projectService serviceInterface="org.jetbrains.kotlin.idea.codeInsight.KotlinCodeInsightWorkspaceSettings"
serviceImplementation="org.jetbrains.kotlin.idea.codeInsight.KotlinCodeInsightWorkspaceSettings"/>