mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Exclude template folder from OSS check (#5384)
This commit is contained in:
@@ -142,6 +142,11 @@ def setup_repos
|
||||
perform("git clone #{repo.git_url} --depth 1 #{dir} 2> /dev/null")
|
||||
swiftlint_config = "#{dir}/.swiftlint.yml"
|
||||
FileUtils.rm_rf(swiftlint_config)
|
||||
if repo.name == 'Wire'
|
||||
File.open(swiftlint_config, 'w') do |file|
|
||||
file.puts('excluded: wire-ios/Templates/Viper')
|
||||
end
|
||||
end
|
||||
if @only_rules_changed && @rules_changed
|
||||
File.open(swiftlint_config, 'w') do |file|
|
||||
file.puts('only_rules:')
|
||||
|
||||
Reference in New Issue
Block a user