Skip to content

Allow Detekt CLI to take an args file. #2318

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

Closed
tyvsmith opened this issue Feb 5, 2020 · 2 comments · Fixed by #2397
Closed

Allow Detekt CLI to take an args file. #2318

tyvsmith opened this issue Feb 5, 2020 · 2 comments · Fixed by #2397
Milestone

Comments

@tyvsmith
Copy link
Contributor

tyvsmith commented Feb 5, 2020

When using Detekt in the Uber monorepo, we've run into issues with extremely long argument lists that result in "Argument list too long" exceptions in the build, for things like Classpath or source lists. We've worked around it for now by trimming down our use of absolute paths in a custom Buck genrule.

Detekt CLI should have the ability to take an args file containing this information to work with larger argument lists that exceed the shell limits.

@arturbosch
Copy link
Member

arturbosch commented Mar 5, 2020

We have just figured out that detekt supports them out of the box using JCommander! Please see the PR for examples :).

@tyvsmith
Copy link
Contributor Author

tyvsmith commented Mar 5, 2020

Oh, cool, I'll take a look and see about bringing that internal this week or next.

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

Successfully merging a pull request may close this issue.

3 participants