Skip to content

Fix cppcheck uninitmembervar #50

Fix cppcheck uninitmembervar

Fix cppcheck uninitmembervar #50

name: TestCPP Static analysis - cppcheck/clang-tidy
on:
# Will run on push when merging to 'branches'. The output will be shown in the console
push:
branches:
- main
# 'pull_request_target' allows this Action to also run on forked repositories
# The output will be shown in PR comments (unless the 'force_console_print' flag is used)
pull_request_target:
branches:
- "*"
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Static analysis for C++(Clang-19)/Python project
uses: eljonny/StaticAnalysis@clang-19
with:
language: c++
# Exclude any issues found in ${Project_root_dir}/3rdparty
exclude_dir: 3rdparty
use_cmake: true
cmake_args: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -Wno-dev
cppcheck_args: --quiet --enable=all --inconclusive --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=checkersReport --suppress='*:3rdparty/*' --std=c++11 --inline-suppr --force --check-level=exhaustive