Commit 8a9ddad
fix(ruby): disable Style/TrivialAccessors for spec_helper top-level method
The spec_helper.rb defines `def client; @client; end` at the top level
rather than using attr_reader, because attr_reader raises
NoMethodError: undefined method 'attr_reader' for main:Object
in Ruby 3.2+ when called outside a class/module context.
Rubocop now flags the trivial def as Style/TrivialAccessors. Disable
the cop so both the runtime constraint and the linter are satisfied.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3eb8dc8 commit 8a9ddad
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments