Change KotlinCleanupInspection display name and description to mention deprecated symbols

This commit is contained in:
Ilya Gorbunov
2015-06-04 19:47:24 +03:00
parent c194ced87e
commit 0c1a8ab8ff
3 changed files with 5 additions and 2 deletions
@@ -3,5 +3,8 @@
This inspection is used during the code cleanup operation (Analyze | Code Cleanup) to automatically This inspection is used during the code cleanup operation (Analyze | Code Cleanup) to automatically
replace usages of obsolete language features or unnecessarily verbose code constructs with replace usages of obsolete language features or unnecessarily verbose code constructs with
compact and up-to-date syntax. compact and up-to-date syntax.
<p>
Deprecated symbol usages are also replaced with their proposed substitutions.
</p>
</body> </body>
</html> </html>
+1 -1
View File
@@ -1024,7 +1024,7 @@
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.KotlinCleanupInspection" <localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.KotlinCleanupInspection"
shortName="KotlinDeprecation" shortName="KotlinDeprecation"
displayName="Usage of redundant or deprecated syntax" displayName="Usage of redundant or deprecated syntax or deprecated symbols"
groupName="Kotlin" groupName="Kotlin"
enabledByDefault="true" enabledByDefault="true"
cleanupTool="true" cleanupTool="true"
@@ -43,7 +43,7 @@ import kotlin.properties.Delegates
public class KotlinCleanupInspection(): LocalInspectionTool(), CleanupLocalInspectionTool { public class KotlinCleanupInspection(): LocalInspectionTool(), CleanupLocalInspectionTool {
// required to simplify the inspection registration in tests // required to simplify the inspection registration in tests
override fun getDisplayName(): String = "Usage of redundant or deprecated syntax" override fun getDisplayName(): String = "Usage of redundant or deprecated syntax or deprecated symbols"
override fun checkFile(file: PsiFile, manager: InspectionManager, isOnTheFly: Boolean): Array<out ProblemDescriptor>? { override fun checkFile(file: PsiFile, manager: InspectionManager, isOnTheFly: Boolean): Array<out ProblemDescriptor>? {
if (isOnTheFly || !ProjectRootsUtil.isInProjectSource(file)) { if (isOnTheFly || !ProjectRootsUtil.isInProjectSource(file)) {