Replace "flatMap -> flatten" inspection with abstract "simplifiable call"

Related to KT-30501
This commit is contained in:
Mikhail Glukhikh
2019-05-06 11:46:56 +03:00
parent 6101b5e6ba
commit 4a5cbe0443
17 changed files with 84 additions and 68 deletions
+2 -2
View File
@@ -3144,8 +3144,8 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.collections.ConvertFlatMapToFlattenInspection"
displayName="flatMap call should be simplified to flatten()"
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.collections.SimplifiableCallInspection"
displayName="Library function call could be simplified"
groupPath="Kotlin"
groupName="Style issues"
enabledByDefault="true"
@@ -1,5 +0,0 @@
<html>
<body>
This inspection reports <b>flatMap</b> call should be simplified to <b>flatten()<b>, e.g. <b>flatMap { it }</b> to <b>flatten()</b>.
</body>
</html>
@@ -0,0 +1,6 @@
<html>
<body>
This inspection reports library function calls which could be replaced by simplified one,
e.g. <b>flatMap { it }</b> call could be simplified to <b>flatten()</b>.
</body>
</html>