AdamMc331 / AdamMc331/AndroidAppTemplate

Setup Detekt Baseline for Incremental Rule Enforcement

Offen
#267 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Kotlin
Sterne
306
Forks
23
Ø Merge
7 Std. 12 Min.
Gemergte PRs (30 T.)
20

Beschreibung

### **Body:**
We need to set up a **Detekt baseline** in the project to facilitate incremental rule enforcement. This approach will allow us to gradually enable rules and fix existing issues over time.

---

### **Steps to Implement:**
1. Create a baseline for Detekt using the `DetektCreateBaselineTask`.
2. Store the baseline file under `config/detekt/baseline.xml`.
3. Ensure Detekt uses the baseline file for analysis and only reports **new issues**.
4. Configure a task to generate/update the baseline when needed.

---

### **Goal:**
- Gradually fix existing issues while enforcing Detekt rules for new code changes.

---

### **Tasks:**
- [ ] Add the baseline configuration to the Detekt setup.
- [ ] Verify that Detekt analysis passes using the new baseline.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.