Module: RuboCop::Cop::PrecedingFollowingAlignment

Included in:
Layout::ExtraSpacing, Layout::SpaceAroundOperators, Layout::SpaceBeforeFirstArg
Defined in:
lib/rubocop/cop/mixin/preceding_following_alignment.rb

Overview

Common functionality for checking whether an AST node/token is aligned with something on a preceding or following line

Constant Summary collapse

ASSIGNMENT_OR_COMPARISON_TOKENS =

Tokens that end with an ‘=`, as well as `<<`, that can be aligned together: `=`, `==`, `===`, `!=`, `<=`, `>=`, `<<` and operator assignment (`+=`, etc).

%i[tEQL tEQ tEQQ tNEQ tLEQ tGEQ tOP_ASGN tLSHFT].freeze