cppcheck: save checkers report
This commit is contained in:
@@ -53,6 +53,12 @@ jobs:
|
|||||||
name: errors_full-linux
|
name: errors_full-linux
|
||||||
path: cppcheck/errors_full.txt
|
path: cppcheck/errors_full.txt
|
||||||
|
|
||||||
|
- name: Archive checkers report
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: checkers_report-linux
|
||||||
|
path: cppcheck/checkers_report.txt
|
||||||
|
|
||||||
cppcheck-windows:
|
cppcheck-windows:
|
||||||
|
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
@@ -94,3 +100,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: errors_full-windows
|
name: errors_full-windows
|
||||||
path: cppcheck/errors_full.txt
|
path: cppcheck/errors_full.txt
|
||||||
|
|
||||||
|
- name: Archive checkers report
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: checkers_report-windows
|
||||||
|
path: cppcheck/checkers_report.txt
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
"..\cppcheck-main\bin\cppcheck.exe" --project=..\build\p2pool.vcxproj --project-configuration="Release|x64" -DSIZE_MAX=UINT64_MAX -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN --platform=win64 --std=c++14 --enable=all --inconclusive --inline-suppr --template="{file}:{line}:{id}{inconclusive: INCONCLUSIVE} {message}" --suppressions-list=suppressions.txt --output-file=errors_full.txt --max-ctu-depth=3 --check-level=exhaustive
|
"..\cppcheck-main\bin\cppcheck.exe" --project=..\build\p2pool.vcxproj --project-configuration="Release|x64" -DSIZE_MAX=UINT64_MAX -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN --platform=win64 --std=c++14 --enable=all --inconclusive --inline-suppr --template="{file}:{line}:{id}{inconclusive: INCONCLUSIVE} {message}" --suppressions-list=suppressions.txt --output-file=errors_full.txt --max-ctu-depth=3 --check-level=exhaustive --checkers-report=checkers_report.txt
|
||||||
findstr /V /C:"external\src" errors_full.txt > errors_filtered0.txt
|
findstr /V /C:"external\src" errors_full.txt > errors_filtered0.txt
|
||||||
findstr /V /C:":checkersReport" errors_filtered0.txt > errors_filtered.txt
|
findstr /V /C:":checkersReport" errors_filtered0.txt > errors_filtered.txt
|
||||||
for /f %%i in ("errors_filtered.txt") do set size=%%~zi
|
for /f %%i in ("errors_filtered.txt") do set size=%%~zi
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
../cppcheck-main/cppcheck --project=../build/compile_commands.json -DSIZE_MAX=UINT64_MAX -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN -D__SSE2__=1 --platform=unix64 --std=c++14 --enable=all --inconclusive --inline-suppr --template="{file}:{line}:{id}{inconclusive: INCONCLUSIVE} {message}" --suppressions-list=suppressions.txt --output-file=errors_full.txt --max-ctu-depth=3 --check-level=exhaustive
|
../cppcheck-main/cppcheck --project=../build/compile_commands.json -DSIZE_MAX=UINT64_MAX -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN -D__SSE2__=1 --platform=unix64 --std=c++14 --enable=all --inconclusive --inline-suppr --template="{file}:{line}:{id}{inconclusive: INCONCLUSIVE} {message}" --suppressions-list=suppressions.txt --output-file=errors_full.txt --max-ctu-depth=3 --check-level=exhaustive --checkers-report=checkers_report.txt
|
||||||
grep -v 'external' errors_full.txt > errors_filtered0.txt
|
grep -v 'external' errors_full.txt > errors_filtered0.txt
|
||||||
grep -v ':checkersReport' errors_filtered0.txt > errors_filtered.txt
|
grep -v ':checkersReport' errors_filtered0.txt > errors_filtered.txt
|
||||||
if [ -s errors_filtered.txt ]; then
|
if [ -s errors_filtered.txt ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user