Sha256: d216ce4b349a828a8f0b5963f3f5f2216d9d83081e20a0fcbba39f84aa51c952
Contents?: true
Size: 534 Bytes
Versions: 259
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks for comma (,) preceded by space. # # @example # # bad # [1 , 2 , 3] # a(1 , 2) # each { |a , b| } # # # good # [1, 2, 3] # a(1, 2) # each { |a, b| } # class SpaceBeforeComma < Base include SpaceBeforePunctuation extend AutoCorrector def kind(token) 'comma' if token.comma? end end end end end
Version data entries
259 entries across 250 versions & 23 rubygems