Module::Checkstyle::Check::Label - Checks label declarations and usage
Checks that a label is named correctly. Use matches-name to specify a regular expression that must match.
matches-name = qr/^(?:[A-Z]+_)*[A-Z]+$/
Checks that a label is positioned correctly. Use position to specify either 'alone' or 'same'.
# position = alone LABEL: while (1) { } # position = same LABEL: while(1) { }
position = alone | same
Checks that last, next and redo are called with a label. Set require-for-break to enable.
last
next
redo
require-for-break = true
Writing configuration files. "Format" in Module::Checkstyle::Config
Module::Checkstyle
To install Module::Checkstyle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Checkstyle
CPAN shell
perl -MCPAN -e shell install Module::Checkstyle
For more information on module installation, please visit the detailed CPAN module installation guide.