Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs3pm
Write "sub my_function{}" instead of "sub myfunction{}".
Affiliation
This Policy is part of the core Perl::Critic distribution.
Overview
Conway's recommended naming convention is to use lower-case words separated by underscores. Well-recognized acronyms can be in ALL CAPS, but must be separated by underscores from other parts of the name.
sub foo_bar{} #oksub foo_BAR{} #oksub FOO_bar{} #oksub FOO_BAR{} #oksub Some::Class::foo{} #ok, grudginglysub FooBar {} #not oksub FOObar {} #not oksub fooBAR {} #not oksub fooBar {} #not ok
Configuration
This Policy is not configurable except for the standard options.