Add inspection for converting !collection.isEmpty() -> isNotEmpty()

#KT-27556 Fixed
This commit is contained in:
kenji tomita
2018-11-17 03:37:38 +03:00
committed by Mikhail Glukhikh
parent 538a746df9
commit 7b43d5c972
7 changed files with 131 additions and 0 deletions
@@ -3196,6 +3196,15 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceNegatedIsEmptyWithIsNotEmptyInspection"
displayName="Replace negated 'isEmpty' with 'isNotEmpty'"
groupPath="Kotlin"
groupName="Style issues"
enabledByDefault="true"
level="WEAK WARNING"
language="kotlin"
/>
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>