lib/tapioca/commands/abstract_dsl.rb in tapioca-0.13.3 vs lib/tapioca/commands/abstract_dsl.rb in tapioca-0.14.3
- old
+ new
@@ -16,10 +16,11 @@
outpath: Pathname,
only: T::Array[String],
exclude: T::Array[String],
file_header: T::Boolean,
tapioca_path: String,
+ skip_constant: T::Array[String],
quiet: T::Boolean,
verbose: T::Boolean,
number_of_workers: T.nilable(Integer),
auto_strictness: T::Boolean,
gem_dir: String,
@@ -34,10 +35,11 @@
outpath:,
only:,
exclude:,
file_header:,
tapioca_path:,
+ skip_constant: [],
quiet: false,
verbose: false,
number_of_workers: nil,
auto_strictness: true,
gem_dir: DEFAULT_GEM_DIR,
@@ -58,10 +60,11 @@
@auto_strictness = auto_strictness
@gem_dir = gem_dir
@rbi_formatter = rbi_formatter
@app_root = app_root
@halt_upon_load_error = halt_upon_load_error
+ @skip_constant = skip_constant
super()
end
private
@@ -122,9 +125,10 @@
requested_compilers: constantize_compilers(@only),
excluded_compilers: constantize_compilers(@exclude),
error_handler: ->(error) {
say_error(error, :bold, :red)
},
+ skipped_constants: constantize(@skip_constant, ignore_missing: true),
number_of_workers: @number_of_workers,
)
end
sig { params(requested_constants: T::Array[String], path: Pathname).returns(T::Set[Pathname]) }