We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad75cc commit f500a79Copy full SHA for f500a79
tasks/cops_documentation.rake
@@ -22,7 +22,7 @@ end
22
23
desc 'Syntax check for the documentation comments'
24
task documentation_syntax_check: :yard_for_generate_documentation do
25
- require 'parser/ruby30'
+ require 'parser/ruby31'
26
27
ok = true
28
YARD::Registry.load!
@@ -37,7 +37,7 @@ task documentation_syntax_check: :yard_for_generate_documentation do
37
examples.to_a.each do |example|
38
buffer = Parser::Source::Buffer.new('<code>', 1)
39
buffer.source = example.text
40
- parser = Parser::Ruby30.new(RuboCop::AST::Builder.new)
+ parser = Parser::Ruby31.new(RuboCop::AST::Builder.new)
41
parser.diagnostics.all_errors_are_fatal = true
42
parser.parse(buffer)
43
rescue Parser::SyntaxError => e
0 commit comments