[codeface] [PATCH] Handle crashing cppstats on invalid files.

  • From: Matthias Dittrich <matthi.d@xxxxxxxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Thu, 12 Feb 2015 14:01:39 +0100

Github: https://github.com/siemens/codeface/pull/22

FROM GITHUB:

Handle possible cppstats crashes:
Sometimes the repository can contain invalid .c or .cpp files (for example 
negative test-cases in llvm) we just ignore the file in this scenario.
A warning is triggered so users can recognize a scenario where all files are 
ignored. In the travis patch a new unit-test was added to check that cppstats 
is actually working. This means when all unit tests are successfully run a 
scenario where all files are ignored is very unlikely.

Because it touches the same files this patch is done on top of the travis CI 
changes.
Please either merge this and close the travis pull request or merge the travis 
pull request first (than this pull request should simplify itself and be easier 
to review).

Because it is on top of the travis CI branch, here is the (successful) build: 
https://travis-ci.org/matthid/codeface/builds/50475458


Matthias Dittrich (1):
  Ignore files which can not be analysed with cppstats.

 codeface/VCS.py | 48 +++++++++++++++++++++++++++++++++---------------
 1 file changed, 33 insertions(+), 15 deletions(-)

-- 
1.9.4.msysgit.0


Other related posts:

  • » [codeface] [PATCH] Handle crashing cppstats on invalid files. - Matthias Dittrich