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.
my ($foo, $bar);
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.
my ($foo ,$bar);
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.
call(arg=> 1)
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.
call(arg =>1)
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.
if (EXPR) { .. }
... if EXPR
after-compound = 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.