From 856c118babc32c6caee413a108acec0cf81852e3 Mon Sep 17 00:00:00 2001 From: Prakash Date: Fri, 20 Apr 2018 17:30:11 -0300 Subject: [PATCH] only lint applicable files --- lib/overcommit/hook/pre_commit/credo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/overcommit/hook/pre_commit/credo.rb b/lib/overcommit/hook/pre_commit/credo.rb index df803b5e..62192fda 100644 --- a/lib/overcommit/hook/pre_commit/credo.rb +++ b/lib/overcommit/hook/pre_commit/credo.rb @@ -8,7 +8,7 @@ class Credo < Base # lib/file2.ex:12:81: R: Line is too long (max is 80, was 81). def run - result = execute command + result = execute(command, args: applicable_files) return :pass if result.success? result.stdout.split("\n").map(&:strip).reject(&:empty?).