ePages 6.11.0 - DE_EPAGES/Core/Scripts/Perl/Critic/Policy/DE_EPAGES/Style/RequireFullSentenceComment.pm

Package Perl::Critic::Policy::DE_EPAGES::Style::RequireFullSentenceComment

This module checks for comments, which should be constructed as full sentences beginning with uppercase and ending with a ".", "?" or "!". 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 comment is found (which is NOT a function or file header comment!), the first character is checked for uppercase. If that succeeded, the current and all following comment lines are checked for a final dot at the end. If one of these constraints failed, a violation is returned. §parameters none