Skip to content

Commit 6a35b0e

Browse files
authored
Merge pull request #154 from marcelofabri/dont-pass-config
Don’t pass explicit config if lint_all_files: true
2 parents 4738de3 + 17564f0 commit 6a35b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/danger_plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def lint_files(files = nil, inline_mode: false, fail_on_error: false, additional
6969

7070
config_file_path = if config_file
7171
config_file
72-
elsif File.file?('.swiftlint.yml')
72+
elsif !lint_all_files && File.file?('.swiftlint.yml')
7373
File.expand_path('.swiftlint.yml')
7474
end
7575
log "Using config file: #{config_file_path}"

0 commit comments

Comments
 (0)