lib/standard/rubocop/ext.rb in standard-1.0.4 vs lib/standard/rubocop/ext.rb in standard-1.0.5
- old
+ new
@@ -4,12 +4,12 @@
def message(_)
"Wrap assignment in parentheses if intentional"
end
end
- class CommentConfig
- remove_const :COMMENT_DIRECTIVE_REGEXP
- COMMENT_DIRECTIVE_REGEXP = Regexp.new(
+ class DirectiveComment
+ remove_const :DIRECTIVE_COMMENT_REGEXP
+ DIRECTIVE_COMMENT_REGEXP = Regexp.new(
('# (?:standard|rubocop) : ((?:disable|enable|todo))\b ' + COPS_PATTERN)
.gsub(" ", '\s*')
)
end
end