Skip to content

Commit 7b40c80

Browse files
justin808claude
andauthored
Fix RuboCop workflow issues and warnings (#1810)
## Issues Fixed: 1. **Eliminated suggestion warnings**: Added SuggestExtensions: false to disable rubocop-capybara/factory_bot/rspec_rails suggestions 2. **Ruby 3.5+ compatibility**: Added benchmark, logger, ostruct gems to silence deprecation warnings about gems moving out of stdlib 3. **Cleaner RuboCop output**: No more tip messages or warnings during execution ## Changes: - Updated .rubocop.yml: Added SuggestExtensions: false - Updated Gemfile.development_dependencies: Added benchmark, logger, ostruct gems - All RuboCop checks pass cleanly without warnings - All existing tests continue to pass ## Benefits: - ✅ Clean RuboCop execution without distracting warnings - ✅ Forward compatibility with Ruby 3.5+ - ✅ Better developer experience during linting - ✅ Maintains all existing functionality and test coverage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent c56e148 commit 7b40c80

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ AllCops:
88
NewCops: enable
99
DisplayCopNames: true
1010
TargetRubyVersion: 3.0.0
11+
SuggestExtensions: false
1112

1213
Include:
1314
- '**/Rakefile'

Gemfile.development_dependencies

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ group :development, :test do
3939
gem "scss_lint", require: false
4040
gem "spring", "~> 4.0"
4141
gem "lefthook", require: false
42+
# Added for Ruby 3.5+ compatibility to silence warnings
43+
gem "benchmark", require: false
44+
gem "logger", require: false
45+
gem "ostruct", require: false
4246
end
4347

4448
group :test do

Gemfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ GEM
9191
amazing_print (1.6.0)
9292
ast (2.4.2)
9393
base64 (0.2.0)
94+
benchmark (0.4.1)
9495
bigdecimal (3.1.8)
9596
bootsnap (1.18.3)
9697
msgpack (~> 1.2)
@@ -160,6 +161,7 @@ GEM
160161
listen (3.9.0)
161162
rb-fsevent (~> 0.10, >= 0.10.3)
162163
rb-inotify (~> 0.9, >= 0.9.10)
164+
logger (1.7.0)
163165
loofah (2.22.0)
164166
crass (~> 1.0.2)
165167
nokogiri (>= 1.12.0)
@@ -189,6 +191,7 @@ GEM
189191
nokogiri (1.16.6)
190192
mini_portile2 (~> 2.8.2)
191193
racc (~> 1.4)
194+
ostruct (0.6.1)
192195
package_json (0.1.0)
193196
parallel (1.24.0)
194197
parser (3.3.1.0)
@@ -402,6 +405,7 @@ PLATFORMS
402405

403406
DEPENDENCIES
404407
amazing_print
408+
benchmark
405409
bootsnap
406410
capybara
407411
capybara-screenshot
@@ -415,6 +419,8 @@ DEPENDENCIES
415419
launchy
416420
lefthook
417421
listen
422+
logger
423+
ostruct
418424
package_json
419425
pry
420426
pry-byebug

0 commit comments

Comments
 (0)