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

Version Path
cookstyle-7.9.0 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.8.3 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.8.0 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.7.2 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.6.1 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.5.3 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.5.2 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.5.1 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.4.0 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.3.11 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.3.10 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.2.1 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.1.2 lib/rubocop/monkey_patches/comment_config.rb
cookstyle-7.0.0 lib/rubocop/monkey_patches/comment_config.rb