summaryrefslogtreecommitdiff
path: root/lib/rdoc/generator
diff options
context:
space:
mode:
authorKoichi Sasada <[email protected]>2024-08-09 16:43:02 +0900
committerKoichi Sasada <[email protected]>2024-08-13 12:17:56 +0900
commitd5afa2cc95710f34d5547efdcfc1562305248590 (patch)
tree26e9bc9ccb8b31c0d0c7e930961501997b56b0d5 /lib/rdoc/generator
parenteedf6c35b306184c8c4a5811033294a8f08f703a (diff)
do not show unused block on `send`
Some case it is difficult to know the calling method uses a block or not with `send` on a general framework. So this patch stops showing unused block warning on `send`. example with test/unit: ```ruby require 'test/unit' class T < Test::Unit::TestCase def setup end def test_foo = nil end ``` => /home/ko1/ruby/install/master/lib/ruby/gems/3.4.0+0/gems/test-unit-3.6.2/lib/test/unit/fixture.rb:284: warning: the block passed to 'priority_setup' defined at /home/ko1/ruby/install/master/lib/ruby/gems/3.4.0+0/gems/test-unit-3.6.2/lib/test/unit/priority.rb:183 may be ignored because test/unit can call any setup method (`priority_setup` in this case) with a block. Maybe we can show the warning again when we provide a way to recognize the calling method uses a block or not.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11349
Diffstat (limited to 'lib/rdoc/generator')
0 files changed, 0 insertions, 0 deletions