From c2713ae4507e66b3b622662e45776e3b40f6da75 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 17 Jun 2023 15:58:07 +0900 Subject: [PATCH] Use `Parser::Ruby32` by default for `documentation_syntax_check` Rake task --- tasks/cops_documentation.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/cops_documentation.rake b/tasks/cops_documentation.rake index e82c414253..677bbfb940 100644 --- a/tasks/cops_documentation.rake +++ b/tasks/cops_documentation.rake @@ -22,7 +22,7 @@ end desc 'Syntax check for the documentation comments' task documentation_syntax_check: :yard_for_generate_documentation do - require 'parser/ruby31' + require 'parser/ruby32' ok = true YARD::Registry.load! @@ -37,7 +37,7 @@ task documentation_syntax_check: :yard_for_generate_documentation do examples.to_a.each do |example| buffer = Parser::Source::Buffer.new('', 1) buffer.source = example.text - parser = Parser::Ruby31.new(RuboCop::AST::Builder.new) + parser = Parser::Ruby32.new(RuboCop::AST::Builder.new) parser.diagnostics.all_errors_are_fatal = true parser.parse(buffer) rescue Parser::SyntaxError => e