Sha256: 562a0ded0b2c0c2bd20527a897d4ea7636d18e0a6a71a8f3d2a0544dd4aa6a56
Contents?: true
Size: 457 Bytes
Versions: 259
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks for semicolon (;) preceded by space. # # @example # # bad # x = 1 ; y = 2 # # # good # x = 1; y = 2 class SpaceBeforeSemicolon < Base include SpaceBeforePunctuation extend AutoCorrector def kind(token) 'semicolon' if token.semicolon? end end end end end
Version data entries
259 entries across 250 versions & 23 rubygems