NAME

Module::Checkstyle::Check::Whitespace - Make sure whitespace is at correct places

CONFIGURATION DIRECTIVES

Whitespace after comma

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

Whitespace before comma

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

Whitespace after fat comma

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

Whitespace before fat comma

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

Whitespace after control keyword in compound statements

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

SEE ALSO

Writing configuration files. "Format" in Module::Checkstyle::Config

Module::Checkstyle