Do not report code style warnings on overridden declarations (KT-25416)

#KT-25416 Fixed
This commit is contained in:
Nikolay Krasko
2018-07-16 12:13:03 +03:00
parent b6db8971e4
commit 5b34498162
5 changed files with 34 additions and 9 deletions
@@ -2,23 +2,22 @@
<problem>
<file>test.kt</file>
<line>1</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<description>Function name &lt;code&gt;Foo&lt;/code&gt; should start with a lowercase letter #loc</description>
</problem>
<problem>
<file>test.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<description>Function name &lt;code&gt;FOO_BAR&lt;/code&gt; should not contain underscores #loc</description>
</problem>
<problem>
<file>test.kt</file>
<line>7</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Class naming convention</problem_class>
<description>Function name &lt;code&gt;`a b`&lt;/code&gt; may contain only letters and digits #loc</description>
</problem>
<problem>
<file>test.kt</file>
<line>10</line>
<description>Function name &lt;code&gt;a_b&lt;/code&gt; should not contain underscores #loc</description>
</problem>
</problems>
+9 -1
View File
@@ -4,4 +4,12 @@ fun FOO_BAR() {}
fun xyzzy() {}
fun `a b`() {}
fun `a b`() {}
interface I {
fun a_b()
}
class C : I {
override fun a_b() {} // Shouldn't be reported
}