Merge pull request #17671 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.65.0
build(deps-dev): bump rubocop from 1.64.1 to 1.65.0 in /Library/Homebrew
This commit is contained in:
commit
4bcdd81657
@ -77,13 +77,13 @@ GEM
|
|||||||
rspec-support (3.13.1)
|
rspec-support (3.13.1)
|
||||||
rspec_junit_formatter (0.6.0)
|
rspec_junit_formatter (0.6.0)
|
||||||
rspec-core (>= 2, < 4, != 2.12.0)
|
rspec-core (>= 2, < 4, != 2.12.0)
|
||||||
rubocop (1.64.1)
|
rubocop (1.65.0)
|
||||||
json (~> 2.3)
|
json (~> 2.3)
|
||||||
language_server-protocol (>= 3.17.0)
|
language_server-protocol (>= 3.17.0)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.3.0.2)
|
parser (>= 3.3.0.2)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 2.4, < 3.0)
|
||||||
rexml (>= 3.2.5, < 4.0)
|
rexml (>= 3.2.5, < 4.0)
|
||||||
rubocop-ast (>= 1.31.1, < 2.0)
|
rubocop-ast (>= 1.31.1, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
|
|||||||
@ -16,7 +16,7 @@ module RuboCop
|
|||||||
|
|
||||||
attr_accessor :file_path
|
attr_accessor :file_path
|
||||||
|
|
||||||
@registry = Cop.registry
|
@registry = Registry.global
|
||||||
|
|
||||||
class FormulaNodes < T::Struct
|
class FormulaNodes < T::Struct
|
||||||
prop :node, RuboCop::AST::ClassNode
|
prop :node, RuboCop::AST::ClassNode
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -129,18 +129,18 @@ module Homebrew
|
|||||||
args += ["--extra-details"] if verbose
|
args += ["--extra-details"] if verbose
|
||||||
|
|
||||||
if except_cops
|
if except_cops
|
||||||
except_cops.map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop.to_s, "") }
|
except_cops.map! { |cop| RuboCop::Cop::Registry.global.qualified_cop_name(cop.to_s, "") }
|
||||||
cops_to_exclude = except_cops.select do |cop|
|
cops_to_exclude = except_cops.select do |cop|
|
||||||
RuboCop::Cop::Cop.registry.names.include?(cop) ||
|
RuboCop::Cop::Registry.global.names.include?(cop) ||
|
||||||
RuboCop::Cop::Cop.registry.departments.include?(cop.to_sym)
|
RuboCop::Cop::Registry.global.departments.include?(cop.to_sym)
|
||||||
end
|
end
|
||||||
|
|
||||||
args << "--except" << cops_to_exclude.join(",") unless cops_to_exclude.empty?
|
args << "--except" << cops_to_exclude.join(",") unless cops_to_exclude.empty?
|
||||||
elsif only_cops
|
elsif only_cops
|
||||||
only_cops.map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop.to_s, "") }
|
only_cops.map! { |cop| RuboCop::Cop::Registry.global.qualified_cop_name(cop.to_s, "") }
|
||||||
cops_to_include = only_cops.select do |cop|
|
cops_to_include = only_cops.select do |cop|
|
||||||
RuboCop::Cop::Cop.registry.names.include?(cop) ||
|
RuboCop::Cop::Registry.global.names.include?(cop) ||
|
||||||
RuboCop::Cop::Cop.registry.departments.include?(cop.to_sym)
|
RuboCop::Cop::Registry.global.departments.include?(cop.to_sym)
|
||||||
end
|
end
|
||||||
|
|
||||||
odie "RuboCops #{only_cops.join(",")} were not found" if cops_to_include.empty?
|
odie "RuboCops #{only_cops.join(",")} were not found" if cops_to_include.empty?
|
||||||
|
|||||||
@ -89,7 +89,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
|||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.31.3/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.31.3/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.5.0/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.5.0/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.64.1/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.65.0/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.2/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.2/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.21.1/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.21.1/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.0.2/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.0.2/lib")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user