Sha256: 919b20545c652adeb4b4e45227eb7eb846ab5abd42d5cd03d4c51471094d6146
Contents?: true
Size: 490 Bytes
Versions: 4
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks for semicolon (;) not followed by some kind of space. class SpaceAfterSemicolon < Cop include SpaceAfterPunctuation def space_style_before_rcurly cfg = config.for_cop('Layout/SpaceInsideBlockBraces') cfg['EnforcedStyle'] || 'space' end def kind(token) 'semicolon' if token.type == :tSEMI end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems