Closed moritasoshi closed 4 months ago
What is your reasoning to put the KDoc between the class name and the parameter list? Usually it is on top of the class.
Of course it is a bug that Ktlint throws an exception, but I do not think that Ktlint should facilitate formatting code above to something like:
class ClassA
/**
* some comment
*/
(paramA: String)
I separated the class description from the property description to improve clarity. However, as you point out, this doesn't seem to be the usual way of writing. I agree with your view that there's no necessity to accommodate this scenario.
Expected Behavior
Observed Behavior
An Internal Error occurred when formatting a file with multi-line KDoc comment.
The file I tried to format:
Executed command & Error logs(stacktrace):
Steps to Reproduce
format
command.Additional information
If there is a space between the slash '/' at the end of the multi-line comment and the parentheses '(' at the beginning of the property definition, no internal error will occur and the format will succeed. The execution result will be as follows.
The file to format( a space between '/' and '(' ):
Result:
Your Environment
.editorconfig
settings: