filt.addThreshold(problem.FileSizeItem("*.h", int(args.max_h_file_size)))
filt.addThreshold(problem.IncludeCountItem("*.h", int(args.max_h_include_count)))
filt.addThreshold(problem.FunctionSizeItem("*.c", int(args.max_function_size)))
- filt.addThreshold(problem.DependencyViolationItem("*", int(args.max_dependency_violations)))
+ filt.addThreshold(problem.DependencyViolationItem("*.c", int(args.max_dependency_violations)))
+ filt.addThreshold(problem.DependencyViolationItem("*.h", int(args.max_dependency_violations)))
# 1) Get all the .c files we care about
- files_list = util.get_tor_c_files(TOR_TOPDIR)
+ files_list = util.get_tor_c_files(TOR_TOPDIR, args.include_dir)
# 2) Initialize problem vault and load an optional exceptions file so that
# we don't warn about the past
run_practracker() {
"${PYTHON:-python}" "${PRACTRACKER_DIR}/practracker.py" \
- --max-include-count=0 --max-file-size=0 \
- --max-h-include-count=0 --max-h-file-size=0 \
- --max-function-size=0 --terse \
+ --include-dir "" \
- --max-include-count=0 --max-file-size=0 --max-function-size=0 --terse \
++ --max-file-size=0 \
++ --max-function-size=0 \
++ --max-h-file-size=0 \
++ --max-h-include-count=0 \
++ --max-include-count=0 \
++ --terse \
"${DATA}/" "$@";
}
compare() {