Add inspection to remove redundant qualifier name

#KT-12134 Fixed
This commit is contained in:
Dmitry Gridin
2019-02-27 15:54:54 +03:00
parent d0c3a28996
commit 3756b6f54d
83 changed files with 1469 additions and 0 deletions
@@ -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>