class RuboCop::Cop::Layout::SpaceBeforeSemicolon
Checks for semicolon (;) preceded by space.
@example
# bad x = 1 ; y = 2 # good x = 1; y = 2
Public Instance Methods
kind(token)
click to toggle source
# File lib/rubocop/cop/layout/space_before_semicolon.rb, line 16 def kind(token) 'semicolon' if token.type == :tSEMI end