Closed 0x1eef closed 1 year ago
@webmachine/ruby-maintainers What do you think about dropping <= 2.5 from the build matrix ? 2.6, and before that has already reached EOL. It would help bring this PR to a green build. If it is preferred to continue testing against those Ruby versions, I can look into addressing the underlying issue.
Hi! Yes, I think 2.5 should be dropped. 2.7 is the lowest I'm using (which is embarrassingly old enough imo).
With regards to the linting changes - I don't feel like I have an ownership level of this codebase that would permit me to approve that, but I think it's fine, and if it was my codebase, I'd say 👍🏽 It's probably @seancribbs call.
I didn't see anything objectionable in the style changes. My only question was whether the micro-optimization of single-quoted strings in the case where interpolation is unnecessary still applies. I'm guessing not?
My only question was whether the micro-optimization of single-quoted strings in the case where interpolation is unnecessary still applies. I'm guessing not?
I believe single quotes are the rubocop default, but not the standardrb default. I changed the rule to prefer single quotes instead: commit. I can't speak to the performance issue, but I think the difference between the two is so small that the decision can be made based on other criteria.
Yes, I think 2.5 should be dropped. 2.7
Thanks ! Dropped here.
We should consider adding a required_ruby_version
constraint to the gem spec. As these (or later) changes may introduce incompatibilities with earlier versions of Ruby.
Good idea.
This must be our first PR for years 😆 Thanks @orien!
standardrb provides a relaxed set of linting rules that provide the benefits of a linter without the headaches that can come from the slightly excessive rubocop defaults.
New rules we'd like to adopt can be enabled in
.rubocop.yml
, and similarly rules we don't want to adopt can be disabled in.rubocop.yml
.Most rules were auto-correctable, a few were not and uncovered potential bugs. There are some disabled rules in
.rubocop.yml
- not all of them seem undesirable, but perhaps something to fix in the future.