| Module-Checkstyle documentation | view source | Contained in the Module-Checkstyle distribution. |
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.
require-for-break = true
Writing configuration files. Format in Module::Checkstyle::Config
| Module-Checkstyle documentation | view source | Contained in the Module-Checkstyle distribution. |