Add inspection "Map replaceable with EnumMap" #KT-25439 Fixed

This commit is contained in:
Dereck Bridie
2019-03-25 13:46:19 +03:00
committed by Mikhail Glukhikh
parent 607325c6e5
commit d86ffd3f34
13 changed files with 189 additions and 0 deletions
@@ -2374,6 +2374,15 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceWithEnumMapInspection"
displayName="Replace with EnumMap"
groupPath="Kotlin"
groupName="Other problems"
enabledByDefault="true"
level="WARNING"
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.DataClassPrivateConstructorInspection"
displayName="Private data class constructor is exposed via the 'copy' method"
groupPath="Kotlin"