Class: RuboCop::CommentConfig
- Inherits:
-
Object
- Object
- RuboCop::CommentConfig
- Defined in:
- lib/rubocop/monkey_patches/comment_config.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
- COMMENT_DIRECTIVE_REGEXP =
Regexp.new( ('# (?:rubocop|cookstyle) : ((?:dis|en)able)\b ' + COPS_PATTERN).gsub(' ', '\s*') )