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:
- Create a baseline for Detekt using the
DetektCreateBaselineTask.
- Store the baseline file under
config/detekt/baseline.xml.
- Ensure Detekt uses the baseline file for analysis and only reports new issues.
- Configure a task to generate/update the baseline when needed.
Goal:
- Gradually fix existing issues while enforcing Detekt rules for new code changes.
Tasks:
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:
DetektCreateBaselineTask.config/detekt/baseline.xml.Goal:
Tasks: