| Module-Checkstyle documentation | view source | Contained in the Module-Checkstyle distribution. |
Module::Checkstyle::Check::Whitespace - Make sure whitespace is at correct places
Checks that there is whitespace after a comma, for example as in my ($foo, $bar);. Enable it by setting after-comma to true.
after-comma = true
Checks that there is whitespace before a comma, for example as in my ($foo ,$bar);. Enable it by setting before-comma to 1.
before-comma = true
Checks that there is whitespace after a fat comma (=>), for example as in call(arg=> 1). Enable it by setting after-fat-comma to true.
after-fat-comma = true
Checks that there is whitespace before a fat comma (=>), for example as in call(arg =>1). Enable it by setting before-fat-comma to true.
before-fat-comma = true
Checks that there is whitespace after a control-flow keyword in a compound statement. This means an if, elsif, else, while, for, foreach and continue (if (EXPR) { .. }) but not when they are used as statement modifiers (... if EXPR). For information on compound statements read Compound Statements in perlsyn. Enable this check by setting after-compound to a true value.
after-compound = true
Writing configuration files. Format in Module::Checkstyle::Config
| Module-Checkstyle documentation | view source | Contained in the Module-Checkstyle distribution. |