mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ci_esp_clang' into 'master'
ci: use latest esp-clang for code analysis Closes IDF-6481 See merge request espressif/esp-idf!21640
This commit is contained in:
commit
0b0faf576f
@ -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"
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user