Summary
Re-enable the EmptyCatchBlock detekt rule under empty-blocks in backend/detekt.yml.
This rule is currently disabled (active: false) together with other rules that had widespread pre-existing violations. We want to turn rules back on incrementally.
Tasks
- Set
EmptyCatchBlock.active to true under the empty-blocks section in backend/detekt.yml (or remove the override if the default is already true).
- From the
backend/ directory, run ./gradlew detekt and fix reported violations. Use ./gradlew detektFormat where it helps for formatting-related fixes.
- Keep CI green: the build uses
maxIssues: 0.
Context
The comment at the top of backend/detekt.yml notes that disabled rules are candidates for incremental cleanup.
Summary
Re-enable the EmptyCatchBlock detekt rule under
empty-blocksinbackend/detekt.yml.This rule is currently disabled (
active: false) together with other rules that had widespread pre-existing violations. We want to turn rules back on incrementally.Tasks
EmptyCatchBlock.activetotrueunder theempty-blockssection inbackend/detekt.yml(or remove the override if the default is alreadytrue).backend/directory, run./gradlew detektand fix reported violations. Use./gradlew detektFormatwhere it helps for formatting-related fixes.maxIssues: 0.Context
The comment at the top of
backend/detekt.ymlnotes that disabled rules are candidates for incremental cleanup.