Hello,
ALM: Github
CI: Circle CI
Command: ./gradlew sonar
Language: Kotlin
We are using ktlint on our project and I notice that for example the rule standard:no-consecutive-blank-lines
is effectively brought up in my branch summary but not the standard:max-line-length
.
Is it something expected ?
That leads me to another question, should we, in an android multi module context, generate a ktlint
report for each modules ? or the consolidated one at the root should work ? (like in the example below)
Example of ktlint report send to Sonarcloud:
[
{
"file": "app/file1.kts",
"errors": [
{
"line": 97,
"column": 1,
"message": "Needless blank line(s)",
"rule": "standard:no-consecutive-blank-lines"
}
]
},
{
"file": "module/file2.kt",
"errors": [
{
"line": 198,
"column": 1,
"message": "Exceeded max line length (120)",
"rule": "standard:max-line-length"
},
{
"line": 209,
"column": 1,
"message": "Exceeded max line length (120)",
"rule": "standard:max-line-length"
}
]
}
]