From dec728d049106569e72081b40b3d5e58bcaca428 Mon Sep 17 00:00:00 2001 From: Daniel Orner Date: Mon, 24 Feb 2020 18:55:17 -0500 Subject: [PATCH] Make linted paths implicit for RuboCop (#22) --- src/linters/rubocop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linters/rubocop.js b/src/linters/rubocop.js index b3b51354..1b582e0c 100644 --- a/src/linters/rubocop.js +++ b/src/linters/rubocop.js @@ -50,7 +50,7 @@ class RuboCop { } const fixArg = fix ? "--auto-correct" : ""; - return run(`rubocop --format json ${fixArg} ${args} "."`, { + return run(`rubocop --format json ${fixArg} ${args}`, { dir, ignoreErrors: true, });