Add inspection to remove redundant qualifier name
#KT-12134 Fixed
This commit is contained in:
@@ -2699,6 +2699,14 @@
|
||||
level="WARNING"
|
||||
language="kotlin"/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.RemoveRedundantQualifierNameInspection"
|
||||
displayName="Remove redundant qualifier name"
|
||||
groupPath="Kotlin"
|
||||
groupName="Redundant constructs"
|
||||
enabledByDefault="true"
|
||||
level="WARNING"
|
||||
language="kotlin"/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.RedundantSetterInspection"
|
||||
displayName="Redundant property setter"
|
||||
groupPath="Kotlin"
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection reports redundant qualifier name in references. For example:
|
||||
<pre>
|
||||
<b>package</b> my.simple.name
|
||||
<b>class</b> Foo
|
||||
|
||||
<b>fun</b> test() {
|
||||
<b>val</b> s = my.simple.name.Foo() // redundant qualifier name
|
||||
}
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user