fix style

This commit is contained in:
Max Eisner 2022-08-11 12:53:14 +02:00
parent 4e286ee36d
commit cf84800939
No known key found for this signature in database
GPG Key ID: 4BF122C22879F0C8
2 changed files with 106 additions and 104 deletions

View File

@ -424,7 +424,7 @@ module RuboCop
def audit_formula(_node, _class_node, _parent_class_node, body_node) def audit_formula(_node, _class_node, _parent_class_node, body_node)
install = find_method_def(body_node, :install) install = find_method_def(body_node, :install)
correctable_shell_completion_node(install) do |node, shell, base_name, executable, subcmd, shell_parameter| correctable_shell_completion_node(install) do |node, shell, base_name, executable, subcmd, shell_parameter| # rubocop:disable Metrics/ParameterLists
# generate_completions_from_executable only applicable if shell is passed # generate_completions_from_executable only applicable if shell is passed
next unless shell_parameter.match?(/(bash|zsh|fish)/) next unless shell_parameter.match?(/(bash|zsh|fish)/)

View File

@ -3,6 +3,7 @@
require "rubocops/lines" require "rubocops/lines"
describe RuboCop::Cop::FormulaAudit do
describe RuboCop::Cop::FormulaAudit::Lines do describe RuboCop::Cop::FormulaAudit::Lines do
subject(:cop) { described_class.new } subject(:cop) { described_class.new }
@ -130,3 +131,4 @@ describe RuboCop::Cop::FormulaAudit::SingleGenerateCompletionsDSLCall do
RUBY RUBY
end end
end end
end