mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make includes interface more like the rest of practracker
Everything else assumes that somebody else will open the file for it.
This commit is contained in:
@@ -117,8 +117,10 @@ def consider_metrics_for_file(fname, f):
|
||||
for item in consider_function_size(fname, f):
|
||||
yield item
|
||||
|
||||
# Check for "upward" includes
|
||||
f.seek(0)
|
||||
n = 0
|
||||
for item in includes.consider_include_rules(real_fname):
|
||||
for item in includes.consider_include_rules(real_fname, f):
|
||||
n += 1
|
||||
if n:
|
||||
yield problem.DependencyViolationItem(fname, n)
|
||||
|
||||
Reference in New Issue
Block a user