Add inspection to replace not-null assertion with elvis return

#KT-30381 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-03-12 12:05:00 +09:00
committed by Dmitry Gridin
parent 1c0c01725b
commit dffcfdc02f
24 changed files with 282 additions and 0 deletions
@@ -3355,6 +3355,15 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceNotNullAssertionWithElvisReturnInspection"
displayName="Replace '!!' with '?: return'"
groupPath="Kotlin"
groupName="Style issues"
enabledByDefault="false"
level="WEAK WARNING"
language="kotlin"
/>
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>