July 28th - group pairing
We were trying to make 2 nested classes compaction work, and there's a test for it. A nested module with two class returns an AST with a different format, i.e. it now has a begin node containing the two nested classes. We need to figure out how to iterate through the AST past the begin node.
Next time, we decided should consider creating a brand new cop instead of inheriting from RuboCop::Cop::Style::ClassAndModuleChildren
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Goal
Create a cop like RuboCop::Cop::Style::ClassAndModuleChildren that is able to compact multiple children rather than just one child so we can use it on RBIs
WIP
July 28th - group pairing
We were trying to make 2 nested classes compaction work, and there's a test for it. A nested module with two class returns an AST with a different format, i.e. it now has a
begin
node containing the two nested classes. We need to figure out how to iterate through the AST past thebegin
node.Next time, we decided should consider creating a brand new cop instead of inheriting from
RuboCop::Cop::Style::ClassAndModuleChildren