Add inspection to detect boxes *Range.start & endInclusive

These properties can be replaced with equivalent collections first & last.
#KT-15537 Fixed
This commit is contained in:
Jan Gerling
2019-03-01 17:23:40 +03:00
committed by Mikhail Glukhikh
parent 401d8c2d70
commit 162de77b71
18 changed files with 229 additions and 0 deletions
@@ -3306,6 +3306,15 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceRangeStartEndInclusiveWithFirstLastInspection"
displayName="Replace Range 'start' or 'endInclusive' with 'first' or 'last'"
groupPath="Kotlin"
groupName="Style issues"
enabledByDefault="true"
level="WEAK WARNING"
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.RedundantRequireNotNullCallInspection"
displayName="Redundant 'requireNotNull' or 'checkNotNull' call"
groupPath="Kotlin"