[inspections] NamingConversion: add missing space in description

^KT-41395 Fixed
This commit is contained in:
Dmitry Gridin
2020-08-27 14:58:33 +07:00
parent e12c35de5f
commit 5dbb6fdf50
3 changed files with 16 additions and 2 deletions
@@ -107,7 +107,7 @@ class NamingConventionInspectionSettings(
val message = getNameMismatchMessage(name)
holder.registerProblem(
element.nameIdentifier!!,
"$entityName ${KotlinBundle.message("text.name")}<code>#ref</code> $message #loc",
"$entityName ${KotlinBundle.message("text.name")} <code>#ref</code> $message #loc",
RenameIdentifierFix()
)
}
@@ -20,4 +20,16 @@
<line>10</line>
<description>Function name &lt;code&gt;a_b&lt;/code&gt; should not contain underscores #loc</description>
</problem>
<problem>
<file>test.kt</file>
<line>17</line>
<module>light_idea_test_case</module>
<package>test</package>
<entry_point TYPE="method" FQNAME="test.TestKt int Vector3d()" />
<problem_class id="FunctionName" severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Function naming convention</problem_class>
<description>Function name &lt;code&gt;Vector3d&lt;/code&gt; should start with a lowercase letter #loc</description>
<highlighted_element>Vector3d</highlighted_element>
<offset>4</offset>
<length>8</length>
</problem>
</problems>
+3 -1
View File
@@ -12,4 +12,6 @@ interface I {
class C : I {
override fun a_b() {} // Shouldn't be reported
}
}
fun Vector3d(): Int = 42