Disallow or enforce spaces inside of blocks after opening block and before closing block (block-spacing)

The --fix option on the command line can automatically fix some of the problems reported by this rule.

Rule Details

This rule enforces consistent spacing inside an open block token and the next token on the same line. This rule also enforces consistent spacing inside a close block token and previous token on the same line.

Options

This rule has a string option:

"always" (default) requires one or more spaces

"never" disallows spaces

always

Examples of incorrect code for this rule with the default "always" option: