Fails to run ktlint on over 3000 kotlin files in sourceset
See original GitHub issuePlugin fails to run check/format tasks, when source set contains over 3000 kotlin files.
Currently plugin passes each file to ktlint
and in this case may hit command line arguments limitation. (at least on Windows or MacOS).
Opened after discussion in #156
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Alternate sourceSets are not detected #153 - GitHub
Once I do this, the plugin does not seem to be able to detect kotlin files in that directory. Kotlin files in src/main/java...
Read more >android - Real time rules with ktlint - Stack Overflow
Go to Preferences > Tools > ktlint and make sure Enabled ktlint checkbox is selected. In case of android project also select Android...
Read more >Changelog and Migration Guide - Pre 1.0.0 - Detekt
Now the detekt plugin must be applied to every project and just analyzes Kotlin files in the source set of this project. An...
Read more >Configuring and running Ktlin on Android Studio
Hello Folks!! The goal of this post is help you to configure and run locally the static code analysis called Ktlint on Android...
Read more >A ktlint gradle plugin - codeKK
This plugin creates convenient tasks in your Gradle project that run ktlint checks or do code auto format. The plugin can be applied...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
JFYI: the maximum length of command line arguments is little different by OS.
getconf ARG_MAX
and might be different between machine)getconf ARG_MAX
and might be different between machine)I’ve counted with my project that is showed in #156’s comment, it require about 290,000 characters.
Yeah for now I’m just skipping the
ktlintMainSourceSetCheck
for my Windows build.