Skip to content
Discussion options

You must be logged in to vote

Applies to: any version — this is how the project works by design.

It depends on why detekt now sees the finding. Each module's detekt-baseline.xml forgives the findings the code already had. A baseline entry names the rule, the file and the declaration, not the line.

  • The code moved to another file. Your own split, or a merge of main that moved code, makes old findings come back as new ones. Run ./gradlew detektBaseline. It rewrites all five baselines from the code as it stands and drops entries for findings since fixed. Run it after the merge, in a commit with nothing else in it, so that the review of the baseline shows only moved entries. A renamed declaration comes back the same way, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:android area:ci for:contributor Whoever changes the code or the documents: setup, checks, where a change goes
1 participant