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
When using the ClassAndModuleChildren rule with EnforcedStyle: compact, it does not report violations when the outer module is already nested:
ClassAndModuleChildren
EnforcedStyle: compact
module Foo::Bar class Baz end end
The above would report a violation. It should require:
class Foo::Bar::Baz end
It does not report a violation.
See above.
1.13.0 (using Parser 3.0.1.0, rubocop-ast 1.4.1, running on ruby 3.0.1 x86_64-linux) - rubocop-rails 2.9.1 - rubocop-rspec 2.3.0
The text was updated successfully, but these errors were encountered:
[Fix rubocop#9761] Fix Style/ClassAndModuleChildren false negative …
Style/ClassAndModuleChildren
0c573ec
…for `compact` style when a class/module is partially nested.
compact
[Fix #9761] Fix Style/ClassAndModuleChildren false negative for `co…
8384d34
…mpact` style when a class/module is partially nested.
dvandersluis
Successfully merging a pull request may close this issue.
When using the
ClassAndModuleChildren
rule withEnforcedStyle: compact
, it does not report violations when the outer module is already nested:Expected behavior
The above would report a violation. It should require:
Actual behavior
It does not report a violation.
Steps to reproduce the problem
See above.
RuboCop version
The text was updated successfully, but these errors were encountered: