Consecutive block comments are not allowed. However, block comments followed by line comments and vice versa are allowed, as long as there is at least one blank line between them.
// An EOL comment
// may be followed by another EOL comment
valfoo="foo"// Different comment types (including KDoc) may be consecutive ..
/*
* ... but do need to be separated by a blank line ...
*/// ... as demonstrated here
Seamless integrations. Try Datadog Code Security
Datadog Code Security
Try this rule and analyze your code with Datadog Code Security
How to use this rule
1
2
rulesets:- kotlin-code-style # Rules to enforce Kotlin code style.
Create a static-analysis.datadog.yml with the content above at the root of your repository
Use our free IDE Plugins or add Code Security scans to your CI pipelines