From 281ddb15aea3e9fcd35b0a4a004a5ab335a7820c Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 2 May 2026 04:26:23 +0900 Subject: [PATCH] rubocop: Fix the patch for Parser::Source::Comment RuboCop::Ext::Comment should be included into Parser::Source::Comment, not RuboCop::AST::Comment. The current patch is incorrect. This fixes the patch to be applied to the correct class. ref: * #1020 * https://github.com/rubocop/rubocop/blob/master/lib/rubocop/ext/comment.rb --- gems/rubocop/1.57/rubocop.rbs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gems/rubocop/1.57/rubocop.rbs b/gems/rubocop/1.57/rubocop.rbs index 83e1140a..bbdf6d7c 100644 --- a/gems/rubocop/1.57/rubocop.rbs +++ b/gems/rubocop/1.57/rubocop.rbs @@ -193,16 +193,20 @@ module RuboCop end end -# Patch to RuboCop::AST::* +# Patch to RuboCop::AST::* and Parser::Source::Comment module RuboCop module AST - class Comment - include Ext::Comment - end - class ProcessedSource include Ext::ProcessedSource end end end + +module Parser + class Source + class Comment + include RuboCop::Ext::Comment + end + end +end