mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 06:04:33 +02:00
Merge branch 'ci/fix_sonarqube_exclude' into 'master'
CI: fix sonarqube exclude See merge request espressif/esp-idf!14564
This commit is contained in:
@@ -13,6 +13,9 @@
|
|||||||
- ".gitlab/ci/static-code-analysis.yml"
|
- ".gitlab/ci/static-code-analysis.yml"
|
||||||
- "**/*.py"
|
- "**/*.py"
|
||||||
|
|
||||||
|
.patterns-sonarqube-files: &patterns-sonarqube-files
|
||||||
|
- "tools/ci/sonar_exclude_list.txt"
|
||||||
|
|
||||||
.patterns-example_test: &patterns-example_test
|
.patterns-example_test: &patterns-example_test
|
||||||
- "tools/ci/python_packages/gitlab_api.py"
|
- "tools/ci/python_packages/gitlab_api.py"
|
||||||
- "tools/ci/python_packages/idf_http_server_test/**/*"
|
- "tools/ci/python_packages/idf_http_server_test/**/*"
|
||||||
@@ -237,6 +240,8 @@
|
|||||||
changes: *patterns-c-files
|
changes: *patterns-c-files
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-python-files
|
changes: *patterns-python-files
|
||||||
|
- <<: *if-dev-push
|
||||||
|
changes: *patterns-sonarqube-files
|
||||||
|
|
||||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
# DO NOT place comments or maintain any code from this line
|
# DO NOT place comments or maintain any code from this line
|
||||||
|
@@ -42,8 +42,8 @@ clang_tidy_check:
|
|||||||
- export SUBMODULES=$(get_all_submodules)
|
- export SUBMODULES=$(get_all_submodules)
|
||||||
# get all exclude paths specified in tools/ci/sonar_exclude_list.txt | ignore lines start with # | xargs | replace all <space> to <comma>
|
# get all exclude paths specified in tools/ci/sonar_exclude_list.txt | ignore lines start with # | xargs | replace all <space> to <comma>
|
||||||
- export CUSTOM_EXCLUDES=$(cat $CI_PROJECT_DIR/tools/ci/sonar_exclude_list.txt | grep -v '^#' | xargs | sed -e 's/ /,/g')
|
- export CUSTOM_EXCLUDES=$(cat $CI_PROJECT_DIR/tools/ci/sonar_exclude_list.txt | grep -v '^#' | xargs | sed -e 's/ /,/g')
|
||||||
# Exclude the report dir
|
# Exclude the report dir as well
|
||||||
- export EXCLUSIONS="$SUBMODULES,$REPORT_DIR/**,docs/_static/**,**/*.png,**/*.jpg"
|
- export EXCLUSIONS="$CUSTOM_EXCLUDES,$SUBMODULES,$REPORT_DIR/**,docs/_static/**,**/*.png,**/*.jpg"
|
||||||
- python $NORMALIZE_CLANGTIDY_PY $CI_PROJECT_DIR/$REPORT_DIR/warnings.txt $CI_PROJECT_DIR/$REPORT_DIR/clang_tidy_report.txt $CI_PROJECT_DIR
|
- python $NORMALIZE_CLANGTIDY_PY $CI_PROJECT_DIR/$REPORT_DIR/warnings.txt $CI_PROJECT_DIR/$REPORT_DIR/clang_tidy_report.txt $CI_PROJECT_DIR
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
|
@@ -11,5 +11,5 @@ components/freertos/*.c
|
|||||||
components/freertos/include/freertos/*.h
|
components/freertos/include/freertos/*.h
|
||||||
|
|
||||||
# wpa_supplicant upstream code
|
# wpa_supplicant upstream code
|
||||||
components/wpa_supplicant/src/*
|
components/wpa_supplicant/src/**
|
||||||
components/wpa_supplicant/include/*.h
|
components/wpa_supplicant/include/**
|
||||||
|
Reference in New Issue
Block a user