Add inspection to detect copy() calls in a data class without named arguments

So #KT-17660 Fixed
This commit is contained in:
Kirill Rakhman
2017-05-02 21:05:26 +02:00
committed by Mikhail Glukhikh
parent 2c10f253c5
commit a8b2d3b4e8
15 changed files with 166 additions and 0 deletions
+8
View File
@@ -2141,6 +2141,14 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.CopyWithoutNamedArgumentsInspection"
displayName="'copy' method of data class is called without named arguments"
groupName="Kotlin"
enabledByDefault="true"
level="WEAK WARNING"
language="kotlin"
/>
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>