Yudai Takada

Results 105 comments of Yudai Takada

@zspencer I think proceeding in the direction of deleting `Capybara/ClickLinkOrButtonStyle` while creating a transition destination as follows. If you have any opinions, I would like to hear them. - https://github.com/rubocop/rubocop-capybara/pull/99

This issue that this cop aims to solve is that when a negative check is performed on elements that are dynamically loaded, there is a possibility that the check will...

The reason I wanted to implement this cop was to detect offenses in cases like the following. In an application, the buttons to be displayed change depending on the user's...

Thank you for report. Could you describe the code to reproduce?

I reproduced it: ``` ❯ bundle exec rubocop spec/factories.rb --only FactoryBot/AttributeDefinedStatically Inspecting 1 file . 1 file inspected, no offenses detected ``` ``` ❯ bundle exec rubocop spec/factories.rb Inspecting 1...

It certainly does not seem to offense the current implementation of `FactoryBot/AttributeDefinedStatically` when `--only` is used. `true` is returned here: https://github.com/rubocop/rubocop-factory_bot/blob/81d95db1836be1f4a6726100e131cd53fe2f9008/lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#L80-L82 Therefore, it is not an offense: https://github.com/rubocop/rubocop-factory_bot/blob/81d95db1836be1f4a6726100e131cd53fe2f9008/lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#L48

If we run RuboCop without adding the `--only` option, does that mean that the cop that can be autocorrected will be autocorrected internally and then checked for further offense in...

A repository has been created to reproduce: https://github.com/ydah/reproduction-44-rubocop-factory_bot But I noticed an interesting behavior. First: ``` ❯ bundle exec rubocop spec/factories.rb Inspecting 1 file C Offenses: spec/factories.rb:5:5: C: [Correctable] FactoryBot/AssociationStyle:...

This change eliminates the following parsing error: https://github.com/ruby/ruby/pull/10726/files#r1590905311 https://github.com/ruby/ruby/actions/runs/8968514207/job/24628084248?pr=10726

@yui-knk I changed it to an appropriate example in PR description. For example, I think it makes sense to set an alias for nterms, which is not a parameter in...