Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Detekt Baseline for Incremental Rule Enforcement #242

Open
2 tasks
VahidGarousi opened this issue Dec 16, 2024 · 0 comments
Open
2 tasks

Setup Detekt Baseline for Incremental Rule Enforcement #242

VahidGarousi opened this issue Dec 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@VahidGarousi
Copy link
Collaborator

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.
@VahidGarousi VahidGarousi added the enhancement New feature or request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant