48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
# File 'fastlane/lib/fastlane/actions/pod_lib_lint.rb', line 48
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
description: "Use bundle exec when there is a Gemfile presented",
type: Boolean,
default_value: true,
env_name: "FL_POD_LIB_LINT_USE_BUNDLE"),
FastlaneCore::ConfigItem.new(key: :podspec,
description: "Path of spec to lint",
type: String,
optional: true,
env_name: "FL_POD_LIB_LINT_PODSPEC"),
FastlaneCore::ConfigItem.new(key: :verbose,
description: "Allow output detail in console",
type: Boolean,
optional: true,
env_name: "FL_POD_LIB_LINT_VERBOSE"),
FastlaneCore::ConfigItem.new(key: :allow_warnings,
description: "Allow warnings during pod lint",
type: Boolean,
optional: true,
env_name: "FL_POD_LIB_LINT_ALLOW_WARNINGS"),
FastlaneCore::ConfigItem.new(key: :sources,
description: "The sources of repos you want the pod spec to lint with, separated by commas",
type: Array,
optional: true,
env_name: "FL_POD_LIB_LINT_SOURCES",
verify_block: proc do |value|
UI.user_error!("Sources must be an array.") unless value.kind_of?(Array)
end),
FastlaneCore::ConfigItem.new(key: :subspec,
description: "A specific subspec to lint instead of the entire spec",
type: String,
optional: true,
env_name: "FL_POD_LIB_LINT_SUBSPEC"),
FastlaneCore::ConfigItem.new(key: :include_podspecs,
description: "A Glob of additional ancillary podspecs which are used for linting via :path (available since cocoapods >= 1.7)",
type: String,
optional: true,
env_name: "FL_POD_LIB_LINT_INCLUDE_PODSPECS"),
FastlaneCore::ConfigItem.new(key: :external_podspecs,
description: "A Glob of additional ancillary podspecs which are used for linting via :podspec. If there"\
" are --include-podspecs, then these are removed from them (available since cocoapods >= 1.7)",
type: String,
optional: true,
env_name: "FL_POD_LIB_LINT_EXTERNAL_PODSPECS"),
FastlaneCore::ConfigItem.new(key: :swift_version,
description: "The SWIFT_VERSION that should be used to lint the spec. This takes precedence over a .swift-version file",
type: String,
optional: true,
env_name: "FL_POD_LIB_LINT_SWIFT_VERSION"),
FastlaneCore::ConfigItem.new(key: :use_libraries,
description: "Lint uses static libraries to install the spec",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_USE_LIBRARIES"),
FastlaneCore::ConfigItem.new(key: :use_modular_headers,
description: "Lint using modular libraries (available since cocoapods >= 1.6)",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_USE_MODULAR_HEADERS"),
FastlaneCore::ConfigItem.new(key: :fail_fast,
description: "Lint stops on the first failing platform or subspec",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_FAIL_FAST"),
FastlaneCore::ConfigItem.new(key: :private,
description: "Lint skips checks that apply only to public specs",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_PRIVATE"),
FastlaneCore::ConfigItem.new(key: :quick,
description: "Lint skips checks that would require to download and build the spec",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_QUICK"),
FastlaneCore::ConfigItem.new(key: :no_clean,
description: "Lint leaves the build directory intact for inspection",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_NO_CLEAN"),
FastlaneCore::ConfigItem.new(key: :no_subspecs,
description: "Lint skips validation of subspecs",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_NO_SUBSPECS"),
FastlaneCore::ConfigItem.new(key: :platforms,
description: "Lint against specific platforms (defaults to all platforms supported by "\
"the podspec). Multiple platforms must be comma-delimited (available since cocoapods >= 1.6)",
optional: true,
env_name: "FL_POD_LIB_LINT_PLATFORMS"),
FastlaneCore::ConfigItem.new(key: :skip_import_validation,
description: "Lint skips validating that the pod can be imported (available since cocoapods >= 1.3)",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_SKIP_IMPORT_VALIDATION"),
FastlaneCore::ConfigItem.new(key: :skip_tests,
description: "Lint skips building and running tests during validation (available since cocoapods >= 1.3)",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_SKIP_TESTS"),
FastlaneCore::ConfigItem.new(key: :analyze,
description: "Validate with the Xcode Static Analysis tool (available since cocoapods >= 1.6.1)",
type: Boolean,
default_value: false,
env_name: "FL_POD_LIB_LINT_ANALYZE")
]
end
|