Add inspection for converting !collection.isEmpty() -> isNotEmpty()
#KT-27556 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
538a746df9
commit
7b43d5c972
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user