Introduce "Logger initialized with foreign class" inspection
^KT-38982 Fixed
This commit is contained in:
committed by
Nikita Bobko
parent
c6e23ffa3b
commit
23c4eac45b
@@ -3316,6 +3316,14 @@
|
||||
language="kotlin"
|
||||
key="inspection.redundant.elvis.return.null.display.name" bundle="messages.KotlinBundle"/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.logging.KotlinLoggerInitializedWithForeignClassInspection"
|
||||
groupPath="Kotlin"
|
||||
groupName="Logging"
|
||||
enabledByDefault="false"
|
||||
level="WARNING"
|
||||
language="kotlin"
|
||||
key="inspection.logger.initialized.with.foreign.class.display.name" bundle="messages.KotlinBundle"/>
|
||||
|
||||
<projectService serviceImplementation="org.jetbrains.kotlin.idea.codeInsight.KotlinCodeInsightWorkspaceSettings"/>
|
||||
|
||||
<applicationService serviceImplementation="org.jetbrains.kotlin.idea.codeInsight.KotlinCodeInsightSettings"/>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection reports any <b>Logger</b>s which are initialized with a class literal from a different class than the <b>Logger</b> is contained in.
|
||||
<br /><br />
|
||||
Use the table below to specify the logger factory classes and logger factory methods recognized by this inspection.
|
||||
</body>
|
||||
</html>
|
||||
@@ -2206,4 +2206,9 @@ kotlin.script.definitions.model.name.name=Name
|
||||
codestyle.name.kotlin=Kotlin
|
||||
add.missing.class.keyword=Add missing 'class' keyword
|
||||
fix.move.typealias.to.top.level=Move typealias to top level
|
||||
fix.change.jvm.name=Change JVM name
|
||||
fix.change.jvm.name=Change JVM name
|
||||
inspection.logger.initialized.with.foreign.class.display.name=Logger initialized with foreign class
|
||||
logger.initialized.with.foreign.class=Logger initialized with foreign class ''{0}''
|
||||
logger.factory.method.name=Logger factory method name
|
||||
logger.factory.class.name=Logger factory class name
|
||||
choose.logger.factory.class=Choose logger factory class
|
||||
Reference in New Issue
Block a user