Method: Fastlane::Actions::EnsureNoDebugCodeAction.available_options

Defined in:
fastlane/lib/fastlane/actions/ensure_no_debug_code.rb

.available_optionsObject



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'fastlane/lib/fastlane/actions/ensure_no_debug_code.rb', line 64

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :text,
                                 env_name: "FL_ENSURE_NO_DEBUG_CODE_TEXT",
                                 description: "The text that must not be in the code base"),
    FastlaneCore::ConfigItem.new(key: :path,
                                 env_name: "FL_ENSURE_NO_DEBUG_CODE_PATH",
                                 description: "The directory containing all the source files",
                                 default_value: ".",
                                 verify_block: proc do |value|
                                   UI.user_error!("Couldn't find the folder at '#{File.absolute_path(value)}'") unless File.directory?(value)
                                 end),
    FastlaneCore::ConfigItem.new(key: :extension,
                                 env_name: "FL_ENSURE_NO_DEBUG_CODE_EXTENSION",
                                 description: "The extension that should be searched for",
                                 optional: true,
                                 verify_block: proc do |value|
                                   value.delete!('.') if value.include?(".")
                                 end),
    FastlaneCore::ConfigItem.new(key: :extensions,
                                 env_name: "FL_ENSURE_NO_DEBUG_CODE_EXTENSIONS",
                                 description: "An array of file extensions that should be searched for",
                                 optional: true,
                                 type: Array),
    FastlaneCore::ConfigItem.new(key: :exclude,
                                 env_name: "FL_ENSURE_NO_DEBUG_CODE_EXCLUDE",
                                 description: "Exclude a certain pattern from the search",
                                 optional: true),
    FastlaneCore::ConfigItem.new(key: :exclude_dirs,
                                 env_name: "FL_ENSURE_NO_DEBUG_CODE_EXCLUDE_DIRS",
                                 description: "An array of dirs that should not be included in the search",
                                 optional: true,
                                 type: Array)
  ]
end