-
Notifications
You must be signed in to change notification settings - Fork 19
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 #267
Comments
I have no problem doing this, I'm curious how helpful a baseline file is on a new project, though, that should not have any violations? Or is the point that, when I turn on a rule (for example, I guess the reasoning doesn't change much, just wanted to understand, maybe it means there's a problem with the current detekt config. |
@AdamMc331 My reason is this: Why Using a Baseline is Helpful Even in a New Project
In SummaryUsing a baseline, even in a new project, ensures you can:
A baseline isn’t just about fixing existing issues—it’s also about managing future changes effectively. 🚀 |
Gotcha. Creating a baseline as-is doesn't work because there are currently no violations, but I might be able to come up with something. Will play around with it. |
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:
The text was updated successfully, but these errors were encountered: