[inspections] NamingConversion: add missing space in description
^KT-41395 Fixed
This commit is contained in:
@@ -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 <code>a_b</code> 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 <code>Vector3d</code> should start with a lowercase letter #loc</description>
|
||||
<highlighted_element>Vector3d</highlighted_element>
|
||||
<offset>4</offset>
|
||||
<length>8</length>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
+3
-1
@@ -12,4 +12,6 @@ interface I {
|
||||
|
||||
class C : I {
|
||||
override fun a_b() {} // Shouldn't be reported
|
||||
}
|
||||
}
|
||||
|
||||
fun Vector3d(): Int = 42
|
||||
|
||||
Reference in New Issue
Block a user