Skip to content

New detekt generator Part 2#9141

Draft
BraisGabin wants to merge 6 commits into
mainfrom
new-detekt-generator-2
Draft

New detekt generator Part 2#9141
BraisGabin wants to merge 6 commits into
mainfrom
new-detekt-generator-2

Conversation

@BraisGabin
Copy link
Copy Markdown
Member

Goes on top of #9140

After #9140 we can stop commiting the config files. Those are generated files so we shouldn't commit them, gradle knows how and when it should regenerate them and it also knows how to add them to the resources of the final jar without adding them to the src/main/resources folder.

I see a pro and a con to this PR:

PRO: detekt is easier to contribute you don't need to execute ./gradlew generateDocumentation anymore and commit those changes. That was always a source of errors for new contributors (and no so new contributors too).
CON: It was handy to read the yaml diff on the PRs. Some times it was easier to spot problems there than just by reading the rule. And we are loosing that.

I'm not against closing this PR if we think that the CON is too big.

@detekt-ci
Copy link
Copy Markdown
Collaborator

detekt-ci commented Mar 10, 2026

Messages
📖

Thank you very much for making our website better ❤️!

Generated by 🚫 dangerJS against 3a52707

@BraisGabin BraisGabin force-pushed the new-detekt-generator-2 branch 2 times, most recently from a2ac7d2 to 64330e1 Compare March 10, 2026 15:51
@BraisGabin BraisGabin force-pushed the new-detekt-generator-2 branch from 64330e1 to f4ed8ff Compare March 10, 2026 15:59
@BraisGabin BraisGabin force-pushed the new-detekt-generator-2 branch 2 times, most recently from d8a7e64 to 63856c9 Compare March 10, 2026 22:44
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.98%. Comparing base (d2e7e8e) to head (3a52707).

Files with missing lines Patch % Lines
.../main/kotlin/dev/detekt/generator/DetektPrinter.kt 33.33% 2 Missing ⚠️

❌ Your patch check has failed because the patch coverage (33.33%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9141      +/-   ##
============================================
+ Coverage     84.92%   84.98%   +0.06%     
+ Complexity     4427     4423       -4     
============================================
  Files           570      570              
  Lines         12299    12275      -24     
  Branches       2694     2694              
============================================
- Hits          10445    10432      -13     
+ Misses          683      672      -11     
  Partials       1171     1171              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants