Sha256: fc7b8cc34648f6a5178030468f04e57f59bcbfe47b96af0eced815108e3cbedb
Contents?: true
Size: 629 Bytes
Versions: 11
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks for semicolon (`;`) not followed by some kind of space. # # @example # # bad # x = 1;y = 2 # # # good # x = 1; y = 2 class SpaceAfterSemicolon < Base include SpaceAfterPunctuation extend AutoCorrector def space_style_before_rcurly cfg = config.for_cop('Layout/SpaceInsideBlockBraces') cfg['EnforcedStyle'] || 'space' end def kind(token) 'semicolon' if token.semicolon? end end end end end
Version data entries
11 entries across 11 versions & 3 rubygems