From f8de6a66ca44ac1d010bebf5653064a5c0cda0b9 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Sun, 31 Jan 2016 21:18:50 +0100 Subject: [PATCH] Raise file size limit for daca2 from 100kb to 1mb --- tools/daca2-report.py | 2 +- tools/daca2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/daca2-report.py b/tools/daca2-report.py index 063b69164..8e5877e45 100644 --- a/tools/daca2-report.py +++ b/tools/daca2-report.py @@ -47,7 +47,7 @@ mainpage.write('\n') mainpage.write('\n') mainpage.write('

DACA2

\n') mainpage.write('

Results when running latest (git head) Cppcheck on Debian.

\n') -mainpage.write('

For performance reasons the analysis is limited. Files larger than 100kb are skipped. If analysis of a file takes more than 10 minutes it may be stopped.

\n') +mainpage.write('

For performance reasons the analysis is limited. Files larger than 1mb are skipped. If analysis of a file takes more than 10 minutes it may be stopped.

\n') mainpage.write('\n') mainpage.write( '' + diff --git a/tools/daca2.py b/tools/daca2.py index 3113a525d..ec42ae65a 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -116,7 +116,7 @@ def removeLargeFiles(path): removeLargeFiles(g + '/') elif os.path.isfile(g) and g[-4:] != '.txt': statinfo = os.stat(g) - if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 100000: + if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 10000000: os.remove(g)