Feature: configure maxArgLength from CLI
See original GitHub issueDescription
I’m running tslint in my project. In case of normal commits, all works well but in case of a very large one (merge commit, hundreds of file in staging) tslint task fails. Also my tasks’ list is divided quite strangely (one chunk is around 100 files, another one over 500)
lint-staged:gen-tasks ... 107 more items
lint-staged:gen-tasks ... 521 more items
I’m manually changing the maxArgLength
in bin/lint-staged.js
to a much smaller value (Windows value, 8000). The whole process is divided into 50 chunks and all goes well.
Can we add maxArgLength to CLI parameters?
Steps to reproduce
Debug Logs
expand to view
Running tasks (chunk 1/2)... [started]
Running tasks for dgc-ui-core/**/*.{ts,tsx} [started]
npm run lint:fix --prefix dgc-ui-core -- --format verbose [started]
npm run lint:fix --prefix dgc-ui-core -- --format verbose [completed]
Running tasks for dgc-ui-core/**/*.{ts,tsx} [completed]
Running tasks (chunk 1/2)... [completed]
Running tasks (chunk 2/2)... [started]
Running tasks for dgc-ui-core/**/*.{ts,tsx} [started]
npm run lint:fix --prefix dgc-ui-core -- --format verbose [started]
npm run lint:fix --prefix dgc-ui-core -- --format verbose [failed]
Environment
- OS: macOS Catalinia
- Node.js: 12
lint-staged
: 10.0.7
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
get-feature — AWS CLI 1.27.34 Command Reference
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings. --cli-read-timeout (int). The maximum socket read time in ...
Read more >lint-staged: Versions
Full version history for lint-staged including change logs. ... single configuration file (877ab4c). Features. expose --max-arg-length cli option (e8291b0) ...
Read more >picocli - a mighty tiny command line interface
Kotlin Projects Using Gradle. Kotlin projects should add the kotlin-kapt plugin to enable the Kotlin Annotation processing tool (kapt), then ...
Read more >Basic functionality
To get a full list of commands available in Ory CLI, run this command: ... -c, --config string Path to the Ory Network...
Read more >Advanced CLI Features
Provisioning for output files works in the same way and has been tested with S3 output locations. For some file provisioning methods, additional...
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
OK, it works, thanks for help. I will close the issue
Thanks, I will try it out!