Skip to content

Best way to migrate a highly non-compliant project to Detekt #5709

Answered by schalkms
JohnLKramer asked this question in Q&A
Discussion options

You must be logged in to vote

Do you know about the baseline feature in detekt?
https://detekt.dev/docs/introduction/baseline

The intention of the baseline feature is that only new code smells are printed on further analysis.
You could start with generating a baseline and then improve gradually by managing the total debt count. By regenerating the baseline again you then have a new base to improve your code base further on.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BraisGabin
Comment options

@JohnLKramer
Comment options

@schalkms
Comment options

Answer selected by schalkms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants