Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix #1362] Fix false positives for Rails/EnumSyntax #1363

Merged
merged 1 commit into from
Sep 12, 2024

Commits on Sep 12, 2024

  1. [Fix rubocop#1362] Fix false positives for Rails/EnumSyntax

    Fixes rubocop#1362.
    
    This PR fixes false positives for `Rails/EnumSyntax` when using Ruby 2.7.
    
    The warning shown in rubocop#1238 appears starting from Rails 7.2 (Requires Ruby 3.1+).
    On the other hand, if users use Ruby 2.7, the warning reported in rubocop#1362 will be displayed.
    
    Therefore, it would be appropriate to enable this cop only when analyzing Ruby 3.0+.
    
    Nothing will happen when using Ruby 2.7 with Rails 7.0 or Rails 7.1, but the warning in rubocop#1238
    will not be displayed either. Meanwhile, in Rails 7.2, which requires Ruby 3.1+, Ruby 2.7 cannot be used, so there is no issue.
    koic committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    50fe9a7 View commit details
    Browse the repository at this point in the history