Sha256: 95301b9b6ba406777b377233ca236805cf1880de005b75dd42924a232317235f

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module RuboCop
  module Cop
    module Style
      # Checks for comma (,) not followed by some kind of space.
      class SpaceAfterComma < Cop
        include SpaceAfterPunctuation

        def kind(token)
          'comma' if token.type == :tCOMMA
        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_comma.rb
rubocop-0.38.0 lib/rubocop/cop/style/space_after_comma.rb
rubocop-0.37.2 lib/rubocop/cop/style/space_after_comma.rb
rubocop-0.37.1 lib/rubocop/cop/style/space_after_comma.rb
rubocop-0.37.0 lib/rubocop/cop/style/space_after_comma.rb
rubocop-0.36.0 lib/rubocop/cop/style/space_after_comma.rb