Skip to content
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

detektMain is very slow taking more than 10 mins #5506

Closed
spasnoor21 opened this issue Nov 4, 2022 · 2 comments
Closed

detektMain is very slow taking more than 10 mins #5506

spasnoor21 opened this issue Nov 4, 2022 · 2 comments
Labels

Comments

@spasnoor21
Copy link

detektMain is very slow, taking more than 10 mins. Is there a way I can configure detekt to use existing buildcache rather than re-running compileKotlin

Expected Behavior

Observed Behavior

Steps to Reproduce

Context

Your Environment

  • Version of detekt used:
  • Version of Gradle used (if applicable):
  • Gradle scan link (add --scan option when running the gradle task):
  • Operating System and version:
  • Link to your project (if it's a public repository):
@spasnoor21 spasnoor21 added the bug label Nov 4, 2022
@3flex 3flex added support and removed bug labels Nov 5, 2022
@TWiStErRob
Copy link
Member

I guess one answer will be #5492, @3flex?

@cortinico
Copy link
Member

cortinico commented Nov 5, 2022

Is there a way I can configure detekt to use existing buildcache rather than re-running compileKotlin

As @TWiStErRob suggested already, the solution as of now is to use the detekt-compiler-plugin:

https://github.com/detekt/detekt-compiler-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants