Currently, ktlint is not catching the comment block bad format.
/**
*
*
* */
Expected behavior
Ktlint should catch this bad format.
Correct format
/**
*
*/
I want to make a custom rule or something else to solve the problem.
Currently, ktlint is not catching the comment block bad format.
/**
*
*
* */
Expected behavior
Ktlint should catch this bad format.
Correct format
/**
*
*/
I want to make a custom rule or something else to solve the problem.
Register custom rule: Register your custom rule so that Ktlint recognizes and applies it. This typically involves adding a service file in the resources folder of your project. Create a file named META-INF/services/com.pinterest.ktlint.core.RuleSetProvider and add the fully qualified name of your rule provider class (DocCommentFormatRule.Provider) to it.
Run Ktlint: Once you've added the custom rule, you can run Ktlint on your Kotlin codebase, and it will enforce the correct format for Kotlin doc comments.
./gradlew ktlintThis will check your Kotlin code for compliance with the custom rule.