class Fastlane::Helper::EnsureNoResultsFromXcodebuildAnalyzeHelper
Public Class Methods
ensure_no_results(path, prune)
click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/helper/ensure_no_results_from_xcodebuild_analyze_helper.rb, line 8 def self.ensure_no_results(path, prune) results = Dir["#{path}/**/**.html"] FileUtils.rm_rf(path) if prune if results.empty? UI.success("Project is free of analyzer warnings, all good! 💪") else UI.user_error!("Analyzer found vulnerabilities in #{results.count} file(s)!") end end