Something went wrong on our end
-
Suru Dissanaike authoredSuru Dissanaike authored
static-code-analysis.yml 739 B
variables:
RUN_FLAWFINDER: "flawfinder --falsepositive -m 4"
RUN_CPPCHECK: "cppcheck --enable=all --check-config --error-exitcode=1"
RUN_CPD: "/home/user/pmd-bin-6.19.0/bin/run.sh cpd --minimum-tokens 100 --language c --files"
SOURCE_FOLDER: "src"
COMMON_IMAGE: "iopsys/code-analysis:0.9"
DEBUG: "FALSE"
run_flawfinder:
image: ${COMMON_IMAGE}
stage: static_code_analysis
allow_failure: true
script:
- "${RUN_FLAWFINDER} ${SOURCE_FOLDER}"
run_cppcheck:
image: ${COMMON_IMAGE}
stage: static_code_analysis
allow_failure: true
script:
- "${RUN_CPPCHECK} ${SOURCE_FOLDER}"
run_cpd:
image: ${COMMON_IMAGE}
stage: static_code_analysis
allow_failure: true
script:
- "${RUN_CPD} ${SOURCE_FOLDER}"