2022-10-18 #rubykaigi_after_talks
Toward a happy symbiosis
with RuboCop
@ydah
Slide 2
Slide 2 text
• Name: Yudai T
akada
• GitHub: @ydah
• T
witter: @ydah_
• An Open Source Software programmer.
• Software Engineer at ANDPAD, Inc.
• Born and raised in Osaka.
• Loves beer and coffee and heavy metal 🍻 ☕ 🤘
self.inspect
• https://github.com/rubocop/rubocop-performance/pull/285/
commits/7a4413bf6fd63655161102b932dd41af414d60f4
• 人生初の OSS へ送ったパッチ
• エラーが発生するケースを見つけたので修正した
Fix an error for Performance/MapCompact when
using map(&:do_something).compact.first and there is a
line break after map.compact and receiver
• https://github.com/rubocop/rubocop/pull/10674/commits/
a83732be3767cd50f821aba4b3d01542ff6f6f86
• 社内で辛いと話されていたやつ
• 最初は arguments forwarding からゆっくり剥がしていこうかと思っていた
• そもそもこの cop が違反とみなすのは第一引数が arg の単純なセッターだけ
で良いのでは?という話になったので、結果的に辛いと話されていたケースも
違反ではなくなった
Fix a false positive for Naming/AccessorMethodName with
type of the first argument is other than arg