standardrb / standard

Ruby's bikeshed-proof linter and formatter 🚲
Other
2.73k stars 214 forks source link

Restore 3.0 to CI, bump gemspec #634

Closed mjankowski closed 5 months ago

mjankowski commented 5 months ago

Context: https://github.com/standardrb/standard-performance/pull/26#issuecomment-2171548753

Prep for possible aligned release of standard/-rails/-performance

mjankowski commented 5 months ago

Added commit to also bump TargetRubyVersion (RE: https://github.com/standardrb/standard-performance/pull/26#issuecomment-2171671971)

mjankowski commented 5 months ago

Another possible update here ... looks like the Standard::Base::Plugin class has a method that does yaml merging for backwards support of many ruby versions, with each version inheriting from the next highest one and disabling the cops added in that higher version. So probably...

searls commented 5 months ago

@mjankowski no, those are all there intentionally. Standard is designed to allow users to target ancient Rubies. If you run Standard under a supported-by-rubocop Ruby against a 1.8.7 codebase by setting TargetRubyVersion, it'll still be able to lint/format without breaking 1.8.7 compatibility

mjankowski commented 5 months ago

Oh right - disconnect between runtime support and linting target support. Got it.

Pushed another commit here which adds 3.3 yml and adjusts 3.2 in what I think is correct mirroring other files. As far as I can see there are not any cops which need 3.3 as minimum.