Introduce "Redundant 'asSequence' call" inspections

#KT-35893 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-14 17:54:21 +09:00
committed by igoriakovlev
parent e2c3455445
commit afd544cbab
18 changed files with 183 additions and 5 deletions
@@ -3324,6 +3324,14 @@
language="kotlin"
key="inspection.logger.initialized.with.foreign.class.display.name" bundle="messages.KotlinBundle"/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.collections.RedundantAsSequenceInspection"
groupPath="Kotlin"
groupName="Style issues"
enabledByDefault="true"
level="WEAK WARNING"
language="kotlin"
key="inspection.redundant.assequence.call" bundle="messages.KotlinBundle"/>
<projectService serviceImplementation="org.jetbrains.kotlin.idea.codeInsight.KotlinCodeInsightWorkspaceSettings"/>
<applicationService serviceImplementation="org.jetbrains.kotlin.idea.codeInsight.KotlinCodeInsightSettings"/>
@@ -0,0 +1,5 @@
<html>
<body>
This inspection reports redundant 'asSequence()' call that can never have a positive performance effect.
</body>
</html>