- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Detekt to 1.23.4 #384
Conversation
…wareKLogger` class
Changes:
I hope this change would make the build script more readable and generally nice to config.
This style guide is already present in the project, so I decided to explicitly describe it in the .editorconfig and detekt.yml. The first one would help an IDE to format the code properly, and the second one will ensure that this style guide would be followed. |
BTW, why does the build script use |
Also, I could filter out detekt tasks on It's as simple as changing tasks {
// ...
afterEvaluate {
check {
dependsOn(withType<Detekt>())
}
}
} to tasks {
// ...
afterEvaluate {
check {
dependsOn(withType<Detekt>().filterNot { it.name.contains("test", ignoreCase = true) })
// or even:
// dependsOn(withType<Detekt>().filter { "Main" in it.name })
}
}
} |
If I remember correctly we started with detekt and now use spotless (don't remember why I changed it...). So I am not sure we need detekt at all. |
As far as I know, detekt is a full blown static analysis tool while spotless is more like a formatter/code style checker. If you want, I can remove detekt from the config. If so, should I just rename this pr, or should I close it, and open the new one? |
The reason I created this PR is because old |
Let's stay only with spotless and remove detekt. |
Should fix issues in #374 automatic PR