Bozhidar Batsov
Bozhidar Batsov
> Allow rubocop:disable comments, only if they target a subset of the file. @sambostock Sorry for the radio silence for months! I do like the above suggestion, as the functionality...
Btw, now we can do the opposite as well (https://docs.rubocop.org/rubocop/1.38/configuration.html#temporarily-enabling-cops-in-source-code), so perhaps we should account for it.
Yeah, exactly.
Makes sense to me. A bit of historical context - originally we went for the share-nothing approach mostly because in Ruby you can't really make much meaningful cross-file analysis -...
> it seems natural in my opinion to be quoted Why so?
But those multibyte chars work without the quotes, right? I tested this locally and all seems fine, so I don't see much of a reason to treat multibyte chars differently....
@koic Sorry for dropping the ball on this. I'm fine with limiting the scope of the changes for this PR. I'd just suggest expanding the doc examples to make it...
That's by design indeed - sometimes an `if`/`else` just reads better, so we wanted to leave people the option to chose what go for. I recall originally this cop was...
Btw, I see that the cop examples are clearly incorrect - e.g. we have this very same code listed as something that would be marked as an offense and most...
I've also been thinking about some form of configuration, but I don't think that the idea about groups will work in practice. We can probably have a list of operators...