From 80406c20fd3d1a86b0a0558c10f6747b2b47698e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20Ja=CC=88ppinen?= Date: Wed, 27 Nov 2019 08:12:06 +0200 Subject: [PATCH] fix: max arg length is by default half of the allowed to prevent edge cases --- bin/lint-staged | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lint-staged b/bin/lint-staged index 90126cae3..49c1eb869 100755 --- a/bin/lint-staged +++ b/bin/lint-staged @@ -62,7 +62,7 @@ const getMaxArgLength = () => { const options = { configPath: cmdline.config, - maxArgLength: getMaxArgLength(), + maxArgLength: getMaxArgLength() / 2, relative: !!cmdline.relative, shell: !!cmdline.shell, quiet: !!cmdline.quiet,