Class: RuboCop::DirectiveComment
- Inherits:
-
Object
- Object
- RuboCop::DirectiveComment
- Defined in:
- lib/rubocop/monkey_patches/directive_comment.rb
Overview
we’re monkey patching the config regex to allow for # cookstyle: disable whatever in addition to the # rubocop: disable whatever that comes with RuboCop
Constant Summary collapse
- DIRECTIVE_COMMENT_REGEXP =
Regexp.new( "# (?:rubocop|cookstyle) : ((?:disable|enable|todo))\\b #{COPS_PATTERN}" .gsub(' ', '\s*') )