Skip to content

Commit 17564f0

Browse files
committed
Don’t pass explicit config if lint_all_files: true
SwiftLint 0.41.0 introduces a breaking change when handling `—config` and nested configs: realm/SwiftLint#3417
1 parent 4738de3 commit 17564f0

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)