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

Error with base style #38

Open
Fryguy opened this issue Oct 26, 2023 · 3 comments
Open

Error with base style #38

Fryguy opened this issue Oct 26, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Fryguy
Copy link
Member

Fryguy commented Oct 26, 2023

Warning: obsolete parameter `IgnoredMethods` (for `Style/MethodCallWithArgsParentheses`) found in /Users/jfrey/.gem/ruby/3.0.6/gems/manageiq-style-1.3.3/styles/base.yml
`IgnoredMethods` has been renamed to `AllowedMethods` and/or `AllowedPatterns`.
Warning: Style/MethodCallWithArgsParentheses does not support IgnoredMethods parameter.

Supported parameters are:

  - Enabled
  - IgnoreMacros
  - AllowedMethods
  - AllowedPatterns
  - IncludedMacros
  - AllowParenthesesInMultilineCall
  - AllowParenthesesInChaining
  - AllowParenthesesInCamelCaseMethod
  - AllowParenthesesInStringInterpolation
  - EnforcedStyle
  - SupportedStyles
@Fryguy Fryguy added the bug Something isn't working label Oct 26, 2023
@kbrock
Copy link
Member

kbrock commented Oct 26, 2023

I seem to remember the list of not supported parameters to be different when submitting a PR and running from the command line.

To try and understand the difference, I uninstalled all rubocop gems and found the following:

$ ruby -v
ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [arm64-darwin22]
$ bundle update # manageiq-style (1.2.0)
$ gem list rubocop

*** LOCAL GEMS ***

pronto-rubocop (0.11.5)
rubocop (0.82.0)
rubocop-capybara (2.18.0)
rubocop-diff (0.1.1, 0.1.0)
rubocop-discourse (3.2.0)
rubocop-factory_bot (2.23.1)
rubocop-minitest (0.25.1)
rubocop-packaging (0.5.2)
rubocop-performance (1.7.1)
rubocop-rails (2.6.0)
rubocop-rspec (2.22.0)

$ bundle exec rubocop app/models/vm.rb
Error: RuboCop found unknown Ruby version 3.0 in `.ruby-version`.
Supported versions: 2.4, 2.5, 2.6, 2.7

@kbrock
Copy link
Member

kbrock commented Jun 12, 2024

Yea, freeze is also an issue.

The web likes me freezing a constant (e.g. CONST=[1,2,3].freeze)
But the command line in bash prefers that I do not (e.g.: CONST=[1,2,3])

@Fryguy
Copy link
Member Author

Fryguy commented Jun 12, 2024

@kbrock Looking at #38 (comment), I noticed it's installing 0.82.0, which means somehow manageiq-style was installing a very old rubocop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants