Skip to content

Setup Detekt Baseline for Incremental Rule Enforcement #267

Open
@VahidGarousi

Description

@VahidGarousi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions