Skip to content

Commit

Permalink
Exclude template folder from OSS check (#5384)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Dec 10, 2023
1 parent 7c59300 commit 06287d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/oss-check
Original file line number Diff line number Diff line change
Expand Up @@ -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:')
Expand Down

0 comments on commit 06287d5

Please sign in to comment.