#KT-26965 Add inspection + quickfix for replacing Collection<T>.count() with .size
This commit is contained in:
committed by
Dmitry Gridin
parent
240ff08069
commit
4156a76129
@@ -1753,6 +1753,14 @@
|
||||
level="WEAK WARNING"
|
||||
language="kotlin"
|
||||
/>
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceCollectionCountWithSizeInspection"
|
||||
displayName="Collection count can be converted to size"
|
||||
groupPath="Kotlin"
|
||||
groupName="Style issues"
|
||||
enabledByDefault="false"
|
||||
level="WEAK WARNING"
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.DeprecatedCallableAddReplaceWithInspection"
|
||||
displayName="@Deprecated annotation without 'replaceWith' argument"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces <code>count()</code> function calls with <code>size</code>.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user