lib/undercover.rb in undercover-0.3.4 vs lib/undercover.rb in undercover-0.4.0
- old
+ new
@@ -34,11 +34,11 @@
@changeset = changeset.update
@loaded_files = {}
@results = {}
end
- # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
+ # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity
def build
changeset.each_changed_line do |filepath, line_no|
dist_from_line_no = lambda do |res|
return BigDecimal::INFINITY if line_no < res.first_line
@@ -59,10 +59,10 @@
results[filepath] ||= Set.new
results[filepath] << res
end
self
end
- # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
+ # rubocop:enable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity
def build_warnings
warn('Undercover::Report#build_warnings is deprecated! ' \
'Please use the #flagged_results accessor instead.')
all_results.select(&:flagged?)