fastlane/lib/fastlane/actions/oclint.rb in fastlane_hotfix-2.165.1 vs fastlane/lib/fastlane/actions/oclint.rb in fastlane_hotfix-2.187.0
- old
+ new
@@ -127,24 +127,25 @@
FastlaneCore::ConfigItem.new(key: :compile_commands,
env_name: 'FL_OCLINT_COMPILE_COMMANDS',
description: 'The json compilation database, use xctool reporter \'json-compilation-database\'',
default_value: 'compile_commands.json',
optional: true),
- FastlaneCore::ConfigItem.new(key: :select_reqex, # select_reqex is deprecated, remove as soon as possible
+ FastlaneCore::ConfigItem.new(key: :select_reqex,
env_name: 'FL_OCLINT_SELECT_REQEX',
description: 'Select all files matching this reqex',
- is_string: false,
+ skip_type_validation: true, # allows Regex
+ deprecated: "Use `:select_regex` instead",
optional: true),
FastlaneCore::ConfigItem.new(key: :select_regex,
env_name: 'FL_OCLINT_SELECT_REGEX',
description: 'Select all files matching this regex',
- is_string: false,
+ skip_type_validation: true, # allows Regex
optional: true),
FastlaneCore::ConfigItem.new(key: :exclude_regex,
env_name: 'FL_OCLINT_EXCLUDE_REGEX',
description: 'Exclude all files matching this regex',
- is_string: false,
+ skip_type_validation: true, # allows Regex
optional: true),
FastlaneCore::ConfigItem.new(key: :report_type,
env_name: 'FL_OCLINT_REPORT_TYPE',
description: 'The type of the report (default: html)',
default_value: 'html',
@@ -154,59 +155,59 @@
description: 'The reports file path',
optional: true),
FastlaneCore::ConfigItem.new(key: :list_enabled_rules,
env_name: "FL_OCLINT_LIST_ENABLED_RULES",
description: "List enabled rules",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :rc,
env_name: 'FL_OCLINT_RC',
description: 'Override the default behavior of rules',
optional: true),
FastlaneCore::ConfigItem.new(key: :thresholds,
env_name: 'FL_OCLINT_THRESHOLDS',
description: 'List of rule thresholds to override the default behavior of rules',
- is_string: false,
+ type: Array,
optional: true),
FastlaneCore::ConfigItem.new(key: :enable_rules,
env_name: 'FL_OCLINT_ENABLE_RULES',
description: 'List of rules to pick explicitly',
- is_string: false,
+ type: Array,
optional: true),
FastlaneCore::ConfigItem.new(key: :disable_rules,
env_name: 'FL_OCLINT_DISABLE_RULES',
description: 'List of rules to disable',
- is_string: false,
+ type: Array,
optional: true),
FastlaneCore::ConfigItem.new(key: :max_priority_1,
env_name: 'FL_OCLINT_MAX_PRIOTITY_1',
description: 'The max allowed number of priority 1 violations',
- is_string: false,
+ type: Integer,
optional: true),
FastlaneCore::ConfigItem.new(key: :max_priority_2,
env_name: 'FL_OCLINT_MAX_PRIOTITY_2',
description: 'The max allowed number of priority 2 violations',
- is_string: false,
+ type: Integer,
optional: true),
FastlaneCore::ConfigItem.new(key: :max_priority_3,
env_name: 'FL_OCLINT_MAX_PRIOTITY_3',
description: 'The max allowed number of priority 3 violations',
- is_string: false,
+ type: Integer,
optional: true),
FastlaneCore::ConfigItem.new(key: :enable_clang_static_analyzer,
env_name: "FL_OCLINT_ENABLE_CLANG_STATIC_ANALYZER",
description: "Enable Clang Static Analyzer, and integrate results into OCLint report",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :enable_global_analysis,
env_name: "FL_OCLINT_ENABLE_GLOBAL_ANALYSIS",
description: "Compile every source, and analyze across global contexts (depends on number of source files, could results in high memory load)",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :allow_duplicated_violations,
env_name: "FL_OCLINT_ALLOW_DUPLICATED_VIOLATIONS",
description: "Allow duplicated violations in the OCLint report",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :extra_arg,
env_name: 'FL_OCLINT_EXTRA_ARG',
description: 'Additional argument to append to the compiler command line',
optional: true)