lib/rubocop/cop/cop.rb in rubocop-0.62.0 vs lib/rubocop/cop/cop.rb in rubocop-0.63.0
- old
+ new
@@ -216,10 +216,10 @@
match_path?(pattern, path)
end
end
def enabled_line?(line_number)
- return true unless @processed_source
+ return true if @options[:ignore_disable_comments] || !@processed_source
@processed_source.comment_config.cop_enabled_at_line?(self, line_number)
end
def default_severity