Add AccessModifierDeclarations cop by brandonweiss · Pull Request #5444 · rubocop/rubocop
This cop checks that access modifiers (private, protected, and public) are inlined rather than used in the manner that changes the visibility for all future method definitions. Although the former ...