Suppress detekt rule findings
mainThere are two ways to handle detekt rule violations depending on whether the exemption is intentional or pre-existing:
Permanent Exemptions
For intentional, permanent exemptions (such as reflection contracts), use the @Suppress("RuleId") annotation directly on the code declaration. This keeps the reasoning for the suppression adjacent to the code.
Pre-existing Violations
For existing violations that you intend to fix later, use the detekt baseline files (config/detekt/baseline-*.xml). Do not hand-edit these files; instead, regenerate them using the provided scripts.