Skip to content

Commit fe5bd02

Browse files
yhk1038claude
andcommitted
fix(ci): update RuboCop config for Ruby 3.1+
- Update TargetRubyVersion from 3.0 to 3.1 - Exclude smt_solver.rb from Lint/DeprecatedConstants (SMT::TRUE/FALSE are not Ruby's deprecated constants) - Auto-fix anonymous block forwarding for Ruby 3.1+ syntax 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 81200f0 commit fe5bd02

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.rubocop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://docs.rubocop.org/rubocop/
33

44
AllCops:
5-
TargetRubyVersion: 3.0
5+
TargetRubyVersion: 3.1
66
NewCops: enable
77
SuggestExtensions: false
88
Exclude:
@@ -131,6 +131,10 @@ Lint/Void:
131131
Lint/DuplicateBranch:
132132
Enabled: false
133133

134+
Lint/DeprecatedConstants:
135+
Exclude:
136+
- "lib/t_ruby/smt_solver.rb"
137+
134138
# Style exceptions for specs
135139
Style/StringConcatenation:
136140
Exclude:

lib/t_ruby/parser_combinator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ def fail(message)
571571
Fail.new(message)
572572
end
573573

574-
def lazy(&block)
575-
Lazy.new(&block)
574+
def lazy(&)
575+
Lazy.new(&)
576576
end
577577

578578
def choice(*parsers)

0 commit comments

Comments
 (0)