Hi! Could anyone help me? I have the following cod...
# ktlint
a
Hi! Could anyone help me? I have the following code:
Copy code
class Test(
    val test1: String,
    val test2: String, // comment
    val test3: String
)
And I received the error: 'A comment in a 'value_parameter_list' is only allowed when placed on a separate line (cannot be auto-corrected).' I want to write the code like this. How can I disable this rule?
a
But what is name for this rule? Now I have disabled these two rules:
Copy code
ktlint_standard_value-argument-comment = disabled
ktlint_standard_value-parameter-comment = disabled
but I still got error 'A comment in a 'value_parameter_list' is only allowed when placed on a separate line (cannot be auto-corrected).'
p
You have to disable
ktlint_standard_type-parameter-comment
for the message
'A comment in a 'value_parameter_list' is only allowed when placed on a separate line
.
thank you color 1
a
Thanks for the clarification, now it works for me. I found another problem on my side