Updated on 2026-08-14
This commit is contained in:
parent
1a0eaa779a
commit
654b2ff948
17 changed files with 103 additions and 36 deletions
|
|
@ -22,13 +22,19 @@ private fun DetektExtension.configure(project: Project) {
|
|||
ignoreFailures = false
|
||||
autoCorrect = true
|
||||
buildUponDefaultConfig = true
|
||||
config.setFrom(project.rootProject.files("tangem-android-tools/detekt-config.yml"))
|
||||
config.setFrom(
|
||||
project.rootProject.files(
|
||||
"tangem-android-tools/detekt-config.yml",
|
||||
"plugins/detekt-rules/app-detekt-config.yml"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
private fun Project.configureDetektPlugins() {
|
||||
listOf(
|
||||
listOfNotNull(
|
||||
findLibrary(alias = "detekt-formatting"),
|
||||
findLibrary(alias = "detekt-compose"),
|
||||
findProject(":plugins:detekt-rules"),
|
||||
).forEach {
|
||||
dependencies.add(CONFIGURATION_DETEKT_PLUGINS, it)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue