Modern Apps git

← Modern-Apps.git

repo: move detekt.yml to root

Commit
2aafcb9ac22c6524c364ed79df1e16fe39958653
Author
vayun-mathur <[email protected]>
When
2026-10-14 20:25 UTC (1 month ago)
Parents
e162c48

Diff

AGENTS.md
diff --git a/AGENTS.md b/AGENTS.mdindex 86a1ecdb6f..6904ca8362 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -59,7 +59,7 @@ Slash == colon for Gradle (`games/voxels` == `games:voxels`). - Network only via `library.network.NetworkClient` + `TrustBundle` narrowest (`FIRST_PARTY/STANDARD/EXTENDED/MUSICBRAINZ/SYSTEM`). - Package roots closed set: `ui data domain platform network intents service provider widget notifications auth sync telephony`. No `util/`. One public `@Composable` per file, named as file. `domain/` pure (no Android/Compose). - Escape hatches verbatim: `// PACKAGE STRUCTURE EXCEPTION (JNI)`, `// RAW SCAFFOLD EXCEPTION: <reason>`, `// TOAST EXCEPTION: <reason>`, `// RAW ANIMATION EXCEPTION: <reason>`.-- detekt rules live in `config/detekt/detekt.yml` (ui/domain/odf/service scoping rationale inline). Fix code, not config, to green a module.+- detekt rules live in `detekt.yml` (ui/domain/odf/service scoping rationale inline). Fix code, not config, to green a module.  ## 3. Verify (slice touched, never whole repo) ```@@ -102,7 +102,7 @@ Rules: `dev` default, `release` only when asked, `debug` blocked. Never uninstal ``` Never grep repo-wide when a filter will do. Always excluded: `target/ build/ .gradle/ .kotlin/ .git/ .llms/ analysis/ *.log *.onnx metadata_data/photos/`. -`./check` — static verification without building: `:<module>:detekt` (rules in `config/detekt/detekt.yml`) + `cargo check --locked` for Rust modules (workspace members via `-p`, standalone crates in-dir):+`./check` — static verification without building: `:<module>:detekt` (rules in `detekt.yml`) + `cargo check --locked` for Rust modules (workspace members via `-p`, standalone crates in-dir): ``` ./check <module> [...]   # e.g. ./check notes backup; ./check voxels ./check all              # every app + library module (pure-JVM modules excluded)
build-logic/src/main/kotlin/common-conventions-app.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts b/build-logic/src/main/kotlin/common-conventions-app.gradle.ktsindex 39d74c6763..def750c84a 100644--- a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-app.gradle.kts@@ -9,10 +9,10 @@ plugins { }  // Static analysis (./check runs `:module:detekt`). Rules live in the committed-// root config/detekt/detekt.yml; findings fail the task (no ignoreFailures).+// root detekt.yml; findings fail the task (no ignoreFailures). // Config-cache compatible: the config file is resolved here, never a Project. detekt {-    config.setFrom(files(rootDir.resolve("config/detekt/detekt.yml")))+    config.setFrom(files(rootDir.resolve("detekt.yml"))) }  val libs = the<org.gradle.accessors.dm.LibrariesForLibs>()
build-logic/src/main/kotlin/common-conventions-library.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-library.gradle.kts b/build-logic/src/main/kotlin/common-conventions-library.gradle.ktsindex a943ad1287..2325101273 100644--- a/build-logic/src/main/kotlin/common-conventions-library.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-library.gradle.kts@@ -8,10 +8,10 @@ plugins { }  // Static analysis (./check runs `:module:detekt`). Rules live in the committed-// root config/detekt/detekt.yml; findings fail the task (no ignoreFailures).+// root detekt.yml; findings fail the task (no ignoreFailures). // Config-cache compatible: the config file is resolved here, never a Project. detekt {-    config.setFrom(files(rootDir.resolve("config/detekt/detekt.yml")))+    config.setFrom(files(rootDir.resolve("detekt.yml"))) }  val libs = the<org.gradle.accessors.dm.LibrariesForLibs>()
check
diff --git a/check b/checkindex c48325fd33..d90a426e08 100644--- a/check+++ b/check@@ -3,7 +3,7 @@ #   ./gradlew :<mod>:detekt [...] + cargo check --locked -p <crate> [...] (rust modules only) # # Usage:-#   ./check <module> [module...]     # detekt (config/detekt/detekt.yml) + cargo check+#   ./check <module> [module...]     # detekt (detekt.yml) + cargo check #   ./check games/voxels maps        # multi-module, one gradlew invocation #   ./check voxels                    # shorthand -> games:voxels (same as ./install) #   ./check all                       # every app + library module
detekt.yml
diff --git a/config/detekt/detekt.yml b/detekt.ymlsimilarity index 100%rename from config/detekt/detekt.ymlrename to detekt.yml