Package Perl::Critic::Policy::DE_EPAGES::Style::RequireParenthesesLastChar
This module checks for opening and closing parentheses, which should look like: sub foobar { stuff(); even_more_stuff(); } This module acts as a custom policy for Perl::Critic. Perl::Critic uses Module::Pluggable to automatically discover all modules in the Perl::Critic::Policy namespace, which is exactly the cause we put this module beyond Perl::Critic::Policy. This policy iterates over all lines in the current tested module. If a line with a opening parentheses is found, the algorithms checks if it is at the end of the function line, not in a newline. The following lines are searched for the closing parentheses, which in constrast should be on a newline with no further commands around it. If one of both failed, a violation is returned. §parameters none