Module: RuboCop::Cop::SurroundingSpace
- Includes:
- RangeHelp
- Included in:
- Layout::SpaceAroundEqualsInParameterDefault, Layout::SpaceInsideArrayLiteralBrackets, Layout::SpaceInsideBlockBraces, Layout::SpaceInsideHashLiteralBraces, Layout::SpaceInsideParens, Layout::SpaceInsideReferenceBrackets, Layout::SpaceInsideStringInterpolation, Lint::UnneededCopEnableDirective, SpaceCorrector, RuboCop::Cop::Style::TernaryParentheses, RuboCop::Cop::Style::TrailingUnderscoreVariable
- Defined in:
- lib/rubocop/cop/mixin/surrounding_space.rb
Overview
Common functionality for checking and correcting surrounding whitespace.
Constant Summary collapse
- NO_SPACE_COMMAND =
'Do not use'
- SPACE_COMMAND =
'Use'
- SINGLE_SPACE_REGEXP =
/[ \t]/.freeze