Yauheni Dakuka

Results 79 comments of Yauheni Dakuka

No, I've checked it within rubocop-rails.

Sorry for the lack of explanation. No, it should work the same way as if it don't contain any metadata. P.S. And by accident, I combined two false negatives into...

1. Only the names are different. The context description does not reflect the difference because there is the copy-paste mistake present. This false negative should be detected by the cop.

The cop works not only with `nil` as an operand, and there is a corresponding test example: ```ruby it 'registers an offense and corrects when `a.present? ? a : b`'...

> I'm not sure if this case is enough reason to mark the cop as unsafe. This edge case leads to bugs, so it's unsafe.

> What about `(1..3).map { |n| create(:foo, n) }`? It will be ignored, like this: https://github.com/rubocop/rubocop-factory_bot/blob/master/spec/rubocop/cop/factory_bot/create_list_spec.rb#L63

> Please correct me if I’m mistaken, but create_pair/create_list is a syntactic sugar over create in iterators. > Is it worth adding that much code to cover this edge case?...

I've tried to reproduce it with rubocop 1.78.0, but now rubocop doesn't find any offenses.

And please create a tag for it. https://github.com/prawnpdf/pdf-inspector/issues/32