Sha256: 29933604e75bd0b4d9c7891fc5db935f8b415b761c8b4932df50a86e51018a19
Contents?: true
Size: 440 Bytes
Versions: 28
Compression:
Stored size: 440 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 DirectiveComment remove_const('DIRECTIVE_COMMENT_REGEXP') DIRECTIVE_COMMENT_REGEXP = Regexp.new( "# (?:rubocop|cookstyle) : ((?:disable|enable|todo))\\b #{COPS_PATTERN}" .gsub(' ', '\s*') ) end end
Version data entries
28 entries across 28 versions & 1 rubygems