Sha256: af0fa88794f70140ad9da1827558cf9b4625d707065e13973933e7027fe9d4f5
Contents?: true
Size: 439 Bytes
Versions: 17
Compression:
Stored size: 439 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
17 entries across 17 versions & 2 rubygems