You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update DeltaCode to hand new+old scancode data #55
* Alert user that file counts are off because of old scancode algoritm
* Stop logging Redundant Scan Error
* Update test cases for new error message string
* Remove Scan Errors tests
* Update test data to match new scancode file_count algorithm
Signed-off-by: Steven Esser <sesser@nexb.com>
self.errors.append("Deltacode Error: Number of visited files({}) does not match total_files({}) in the new scan".format(new_files_visited, self.new.files_count))
137
-
ifold_files_visited!=self.old.files_count:
138
-
self.errors.append("Deltacode Error: Number of visited files({}) does not match total_files({}) in the old scan".format(old_files_visited, self.old.files_count))
135
+
ifnew_visited!=self.new.files_count:
136
+
self.errors.append(
137
+
'DeltaCode Warning: new_visited({}) != new_total({}). Assuming old scancode format.'.format(new_visited, self.new.files_count)
138
+
)
139
+
140
+
ifold_visited!=self.old.files_count:
141
+
self.errors.append(
142
+
'DeltaCode Warning: old_visited({}) != old_total({}). Assuming old scancode format.'.format(old_visited, self.old.files_count)
# make sure we have same number of File objects as in the scan.
132
-
iflen(files) !=self.files_count:
133
-
self.errors.append('Scan Error: The number of files calculated with \'len(files)\' does not equal the ScanCode \'files_count\' value for the scan with path = '+path+'.')
0 commit comments