We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having .rubocop.yml
.rubocop.yml
Style/ClassAndModuleChildren: EnforcedStyle: compact
and test.rb
test.rb
class ApplicationJob < String class Error end end
When I run rubocop --only Style/ClassAndModuleChildren I get
rubocop --only Style/ClassAndModuleChildren
test.rb:1:7: C: Use compact module/class definition instead of nested style. class ApplicationJob < String
but when I change test.rb to:
class ApplicationJob < String class Error end def test end end
it passes fine
I think it should not enforce compact style in case when top level class is a subclass.
compact
rubocop -V 0.37.2 (using Parser 2.3.0.6, running on ruby 2.3.0 x86_64-linux)
The text was updated successfully, but these errors were encountered:
0f40a84
No branches or pull requests
Having
.rubocop.yml
and
test.rb
When I run
rubocop --only Style/ClassAndModuleChildren
I get
but when I change
test.rb
to:it passes fine
Expected behavior
I think it should not enforce
compact
style in case when top level class is a subclass.RuboCop version
The text was updated successfully, but these errors were encountered: