Sha256: a62ce4c3408c556180d245a42789448cf09014190320c65b77f750d4e35a1db1
Contents?: true
Size: 427 Bytes
Versions: 14
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module RuboCop # we're monkey patching the config regex to allow for # cookstyle: disable whatever # in addition to the # rubocop: disable whatever that comes with RuboCop class CommentConfig remove_const('COMMENT_DIRECTIVE_REGEXP') COMMENT_DIRECTIVE_REGEXP = Regexp.new( "# (?:rubocop|cookstyle): ((?:disable|enable|todo))\\b #{COPS_PATTERN}".gsub(' ', '\s*') ) end end
Version data entries
14 entries across 14 versions & 1 rubygems