Skip to content

Commit

Permalink
Check method order in modules too
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedalbert committed Oct 26, 2024
1 parent b8009d8 commit 81f71ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rubocop/cop/obsession/method_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def on_class(class_node)
verify_private_methods_order
end

def on_module(module_node)
on_class(module_node)
end

private

def find_private_node
Expand Down

0 comments on commit 81f71ec

Please sign in to comment.