Sha256: 5a898b6dbbc4bb47fbd37bb4624098a12895de72b82b4db1ea86ae2756841f8c

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module RuboCop
  module Cop
    module Style
      # Checks for semicolon (;) not followed by some kind of space.
      class SpaceAfterSemicolon < Cop
        include SpaceAfterPunctuation

        def kind(token)
          'semicolon' if token.type == :tSEMI
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-0.39.0 lib/rubocop/cop/style/space_after_semicolon.rb
rubocop-0.38.0 lib/rubocop/cop/style/space_after_semicolon.rb
rubocop-0.37.2 lib/rubocop/cop/style/space_after_semicolon.rb
rubocop-0.37.1 lib/rubocop/cop/style/space_after_semicolon.rb
rubocop-0.37.0 lib/rubocop/cop/style/space_after_semicolon.rb
rubocop-0.36.0 lib/rubocop/cop/style/space_after_semicolon.rb