class RuboCop::Cop::Layout::SpaceAfterSemicolon

Checks for semicolon (;) not followed by some kind of space.

Public Instance Methods

kind(token) click to toggle source
# File lib/rubocop/cop/layout/space_after_semicolon.rb, line 15
def kind(token)
  'semicolon' if token.type == :tSEMI
end
space_style_before_rcurly() click to toggle source
# File lib/rubocop/cop/layout/space_after_semicolon.rb, line 10
def space_style_before_rcurly
  cfg = config.for_cop('Layout/SpaceInsideBlockBraces')
  cfg['EnforcedStyle'] || 'space'
end