Skip to content
Snippets Groups Projects
Commit 0f2131bf authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

ignore codecheck on src/lepton

this could be removed by doing the following:

- applying astyle to src/lepton
- fixing namespace used in src/lepton/*.cpp files
parent a4ce7f88
No related branches found
No related tags found
No related merge requests found
......@@ -25,4 +25,6 @@ coverage:
lcov -r coverage.info "*/lapack/*.cpp" "*/lapack/*.h" -o coverage-tmp.info && mv coverage-tmp.info coverage.info
# remove internal molfile:
lcov -r coverage.info "*/molfile/*.cpp" "*/molfile/*.h" -o coverage-tmp.info && mv coverage-tmp.info coverage.info
# remove internal lepton:
lcov -r coverage.info "*/lepton/*.cpp" "*/lepton/*.h" -o coverage-tmp.info && mv coverage-tmp.info coverage.info
genhtml -o coverage -t "plumed test coverage" coverage.info
......@@ -15,6 +15,7 @@ test -d "$dir" || continue
test "$dir" = lapack && continue
test "$dir" = blas && continue
test "$dir" = molfile && continue
test "$dir" = lepton && continue
cd $dir
......
......@@ -58,7 +58,7 @@ CLEAN_FILE="$TMPDIR/codecheck.clean"
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo " In the following analysis we exclude:"
echo " src/molfile src/lapack src/blas"
echo " src/molfile src/lapack src/blas src/lepton"
echo " since they are full of false positives"
cat codecheck.log |
gawk '{
......@@ -67,11 +67,13 @@ cat codecheck.log |
if(match($0,"[[]lapack/")) next;
if(match($0,"[[]blas/")) next;
if(match($0,"[[]molfile/")) next;
if(match($0,"[[]lepton/")) next;
} else {
# with cppcheck we exclude molfile lapack and blas
if(match($0,"[[]molfile/")) next;
if(match($0,"[[]lapack/")) next;
if(match($0,"[[]blas/")) next;
if(match($0,"[[]lepton/")) next;
}
print
}' > "${CLEAN_FILE}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment