Skip to content

Enable detekt rule: EmptyCatchBlock #307

@AdrianLeeElder

Description

@AdrianLeeElder

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

  1. Set EmptyCatchBlock.active to true under the empty-blocks section in backend/detekt.yml (or remove the override if the default is already true).
  2. From the backend/ directory, run ./gradlew detekt and fix reported violations. Use ./gradlew detektFormat where it helps for formatting-related fixes.
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions