Skip to content

Commit eea73c9

Browse files
prem-prakashsds
authored andcommitted
only lint applicable files
1 parent a72324c commit eea73c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/overcommit/hook/pre_commit/credo.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Credo < Base
88
# lib/file2.ex:12:81: R: Line is too long (max is 80, was 81).
99

1010
def run
11-
result = execute command
11+
result = execute(command, args: applicable_files)
1212
return :pass if result.success?
1313

1414
result.stdout.split("\n").map(&:strip).reject(&:empty?).

0 commit comments

Comments
 (0)