Comments (8)
Indeed, rubocop v0.76.0 still supports Ruby 2.3, so let's keep same supported Ruby version with rubocop.
I close this issue, if any concern let me know (or create another issue).
from rubocop-rails_config.
FYI, Rails 6 has been updated to require Ruby 2.5 or higher.
rails/rails@1b7c322
I think itβs too early to use Ruby 2.4 because there might be many Ruby 2.3 users.
I completely agree. And RubyCop 0.62.0 (latest) still supports Ruby 2.2.
from rubocop-rails_config.
Ruby 2.3 is End Of Life'd as of 2019-03-31:
Not maintained anymore (EOL):
Ruby 2.3.8
sha256: b5016d61440e939045d4e22979e04708ed6c8e1c52e7edb2553cf40b73c59abf
from rubocop-rails_config.
After updating the Rails gem now I get this error and Rubocop stopped working altogether.
Rails 5.2.3
Ruby 2.6.3
Error: Unsupported Ruby version 2.2 found in
TargetRubyVersionparameter (in /Users/test/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rubocop-rails_config-0.5.1/config/rails.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6
I ran bundle exec rubocop --config .rubocop.yml
My project ".rubocop.yml"
inherit_gem:
rubocop-rails_config:
- config/rails.yml
AllCops:
TargetRubyVersion: 2.6
RubyInterpreters:
- ruby
It completely ignores my local ".rubocop.yml" file
from rubocop-rails_config.
Hi, @koic, since Rails 6 has been released officially, I'm wondering if we could drop old Ruby versions - 2,3 and 2.4.
I'd say it's good time to drop. What's your opinion
from rubocop-rails_config.
In fact, Ruby 2.4 is officially supported. Perhaps some rubocop-rails_config users are using Ruby 2.4 and RuboCop also supports Ruby 2.3.
IMHO, maintenance of rubocop-rails_config is not difficult even if it supports Ruby 2.3 and Ruby 2.4. So I think it would be beneficial for users to support Ruby 2.4 and Ruby 2.3.
I have one implementation idea.
- Leave gemspec
required_ruby_version
specified to>= 2.3
. TargetRubyVersion
of config/rails.yml is set to2.5
according to Rails's .rubocop.yml.
However, there is a concern. If rubocop-rails_config specify 2.5
for TargetRubyVersion
, it will be optimized to Ruby 2.5 or higher. Ruby 2.4 and Ruby 2.3 users means that compatibility may be broken if TargetRubyVersion
is not changed to 2.3
or 2.4
from 2.5
.
from rubocop-rails_config.
@koic thanks, I've decided rubocop-rails_config still supports Ruby 2.3+ and updated README about supported Ruby version https://github.com/toshimaru/rubocop-rails_config#targetrubyversion
BTW, Ruby 2.3 is already EOL-ed. so It sounds reasonable to drop Ruby 2.3 and support Ruby 2.4 or more. Do you think we still need to support 2.3?
from rubocop-rails_config.
Yeah, I don't have a strong intention. Anyway, I think rubocop-rails_config can support Ruby versions that supported by RuboCop. It includes Ruby 2.3. Because maintenance cost of rubocop-rails_config does not increase for the opportunities available to rubocop-rails_config users.
from rubocop-rails_config.
Related Issues (14)
- Folllow latest rails rubocop update
- Spelling correction needed HOT 3
- Layout/FirstParameterIndentation renamed to Layout/IndentFirstArgument
- bug in new version rubocop 0.68 HOT 1
- Error: obsolete `EnforcedStyle: rails` HOT 2
- Any chance to officialize gem?
- Update README about Rails/RefuteMethods, Rails/AssertNot HOT 2
- rubocop-rails_config is not compatible with rubocop 0.76.0 HOT 1
- Exclude Gemfile.lock. HOT 6
- rubocop v0.77.0 breaking changes
- Customization doesn't work HOT 4
- The "Layout/Tab" cop has been renamed to "Layout/IndentationStyle" HOT 2
- rubocop-rails_config 1.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubocop-rails_config.