Add "Replace Java static method with Kotlin top-level function" inspection
#KT-27411 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
6bef27e1e8
commit
faa6eacb25
@@ -3396,6 +3396,15 @@
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceJavaStaticMethodWithTopLevelFunctionInspection"
|
||||
displayName="Replace Java static method with Kotlin top-level function"
|
||||
groupPath="Kotlin"
|
||||
groupName="Style issues"
|
||||
enabledByDefault="true"
|
||||
level="WEAK WARNING"
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
|
||||
|
||||
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection reports a Java static method call replaceable by a Kotlin top-level function, e.g. <b>System.out.println()</b>.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user