lib/standard/rubocop/ext.rb in standard-0.13.0 vs lib/standard/rubocop/ext.rb in standard-1.0.0
- old
+ new
@@ -3,6 +3,14 @@
undef_method :message
def message(_)
"Wrap assignment in parentheses if intentional"
end
end
+
+ class CommentConfig
+ remove_const :COMMENT_DIRECTIVE_REGEXP
+ COMMENT_DIRECTIVE_REGEXP = Regexp.new(
+ ('# (?:standard|rubocop) : ((?:disable|enable|todo))\b ' + COPS_PATTERN)
+ .gsub(" ", '\s*')
+ )
+ end
end