Skip to content

Less verbose generator#9135

Draft
BraisGabin wants to merge 2 commits into
mainfrom
less-verbose-generator
Draft

Less verbose generator#9135
BraisGabin wants to merge 2 commits into
mainfrom
less-verbose-generator

Conversation

@BraisGabin

Copy link
Copy Markdown
Member

Right now detekt-generator cli is verbose:

Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/comments.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/complexity.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/coroutines.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/empty-blocks.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/exceptions.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/ktlint.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/libraries.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/naming.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/performance.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/potential-bugs.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/ruleauthors.md
Wrote: /Users/brais.gabin/Workspace/detekt/website/docs/rules/style.md
Wrote: /Users/brais.gabin/Workspace/detekt/detekt-core/src/main/resources/default-detekt-config.yml
Wrote: /Users/brais.gabin/Workspace/detekt/detekt-core/src/main/resources/deprecation.properties
Wrote: ../detekt-rules-ktlint-wrapper/src/main/resources/config/config.yml
Wrote: ../detekt-rules-libraries/src/main/resources/config/config.yml
Wrote: ../detekt-rules-ruleauthors/src/main/resources/config/config.yml

Generated all detekt documentation in 1.568045458s.

At least it is only print in one task. But once #5855 is fixed it will be executed ~10 times so it is too noisy. This PR fixes that, the output is only shown if someone executes the cli with the --debug flag. And, by default, we are not going to make that.

This is a draft because this nosie also show that fixing #5855 may make the full compilation a bit slower. I want to keep the noise there until #5855 is merged and we agree that #5855 is worth even with that slowdown.

@detekt-ci

detekt-ci commented Mar 9, 2026

Copy link
Copy Markdown
Collaborator
Warnings
⚠️ It looks like this PR contains functional changes without a corresponding test.

Generated by 🚫 dangerJS against e8cab63

@codecov

codecov Bot commented Mar 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.03%. Comparing base (6411eda) to head (e8cab63).
⚠️ Report is 159 commits behind head on main.

Files with missing lines Patch % Lines
...rator/src/main/kotlin/dev/detekt/generator/Main.kt 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9135      +/-   ##
============================================
- Coverage     85.04%   85.03%   -0.01%     
  Complexity     4437     4437              
============================================
  Files           570      570              
  Lines         12322    12325       +3     
  Branches       2683     2684       +1     
============================================
+ Hits          10479    10481       +2     
  Misses          680      680              
- Partials       1163     1164       +1     

☔ View full report in Codecov by Harness.
📢 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.

@detekt-ci

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days.

@detekt-ci detekt-ci added the stale label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants