ci: use latest esp-clang for code analysis

This commit is contained in:
Ivan Grokhotkov 2022-12-15 18:46:33 +01:00
parent 52cfc01655
commit 75c92a8811
No known key found for this signature in database
GPG Key ID: 1E050E141B280628
3 changed files with 6 additions and 4 deletions

View File

@ -7,8 +7,8 @@
- "tools/ci/static-analysis-rules.yml"
- "tools/ci/clang_tidy_dirs.txt"
- "**/*.{c,C}"
- "**/*.{h,H}"
- "**/*.{c,C,cpp}"
- "**/*.{h,H,hpp}"
- "components/**/Kconfig"
- "components/**/CMakeList.txt"

View File

@ -3,7 +3,6 @@ clang_tidy_check:
extends:
- .pre_check_template
- .rules:patterns:clang_tidy
image: ${CLANG_STATIC_ANALYSIS_IMAGE}
artifacts:
paths:
- $OUTPUT_DIR
@ -13,6 +12,7 @@ clang_tidy_check:
CLANG_TIDY_DIRS_TXT: ${CI_PROJECT_DIR}/tools/ci/clang_tidy_dirs.txt
RULES_FILE: ${CI_PROJECT_DIR}/tools/ci/static-analysis-rules.yml
OUTPUT_DIR: ${CI_PROJECT_DIR}/clang_tidy_reports
IDF_TOOLCHAIN: clang
script:
- internal_pip_install $CLANG_TIDY_RUNNER_PROJ pyclang
- export PATH=$PATH:$(python -c "import sys; print(sys.executable.rsplit('/', 1)[0])")
@ -21,7 +21,7 @@ clang_tidy_check:
--output-path ${OUTPUT_DIR}
--limit-file ${RULES_FILE}
--xtensa-include-dir
--run-clang-tidy-py ${RUN_CLANG_TIDY_PY}
--run-clang-tidy-py run-clang-tidy
check_pylint:
extends:

View File

@ -38,4 +38,6 @@ skip:
- "components/bt/host/bluedroid/stack/btm/btm_dev.c"
- "components/bt/host/bluedroid/stack/gatt/att_protocol.c"
- "components/bt/host/bluedroid/stack/gatt/gatt_db.c"
- "components/bt/host/bluedroid/stack/l2cap/l2c_utils.c"
- "components/wifi_provisioning/src/scheme_ble.c"
- "components/wpa_supplicant/src/rsn_supp/wpa.c"