Exclude template folder from OSS check (#5384)

This commit is contained in:
Danny Mösch
2023-12-10 15:37:05 +00:00
committed by GitHub
parent 7c59300d39
commit 06287d5a39
+5
View File
@@ -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:')