class Fastlane::Actions::EnsureNoResultsFromXcodebuildAnalyzeAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 22
def self.authors
  ["Marcin Stepnowski"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 32
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
      env_name: "ENSURE_NO_RESULTS_FROM_XCODEBUILD_ANALYZE_PATH",
      description: "Path to analyzer output directory",
      optional: false,
      type: String),
    FastlaneCore::ConfigItem.new(key: :prune,
      env_name: "ENSURE_NO_RESULTS_FROM_XCODEBUILD_ANALYZE_PRUNE",
      description: "Remove directory afterwards if true",
      optional: false,
      type: Boolean,
      default_value: false)
  ]
end
category() click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 14
def self.category
  :building
end
description() click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 18
def self.description
  "Check if the are any vulnerabilities under provided analyzer output path"
end
example_code() click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 26
def self.example_code
  [
    "ensure_no_results(path: 'Meniga/analyzer_output', prune: true)"
  ]
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 48
def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end
run(params) click to toggle source
# File lib/fastlane/plugin/xcodebuild_analyze/actions/ensure_no_results_from_xcodebuild_analyze_action.rb, line 7
def self.run(params)
  Helper::EnsureNoResultsFromXcodebuildAnalyzeHelper.ensure_no_results(
    params[:path],
    params[:prune]
  )
end