Merge branch 'ci/fix_sonarqube_exclude' into 'master'

CI: fix sonarqube exclude

See merge request espressif/esp-idf!14564
This commit is contained in:
Fu Hanxi 2021-07-29 09:17:38 +00:00
commit 1eeecfd6d0
3 changed files with 9 additions and 4 deletions

View File

@ -13,6 +13,9 @@
- ".gitlab/ci/static-code-analysis.yml"
- "**/*.py"
.patterns-sonarqube-files: &patterns-sonarqube-files
- "tools/ci/sonar_exclude_list.txt"
.patterns-example_test: &patterns-example_test
- "tools/ci/python_packages/gitlab_api.py"
- "tools/ci/python_packages/idf_http_server_test/**/*"
@ -237,6 +240,8 @@
changes: *patterns-c-files
- <<: *if-dev-push
changes: *patterns-python-files
- <<: *if-dev-push
changes: *patterns-sonarqube-files
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# DO NOT place comments or maintain any code from this line

View File

@ -42,8 +42,8 @@ clang_tidy_check:
- 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>
- export CUSTOM_EXCLUDES=$(cat $CI_PROJECT_DIR/tools/ci/sonar_exclude_list.txt | grep -v '^#' | xargs | sed -e 's/ /,/g')
# Exclude the report dir
- export EXCLUSIONS="$SUBMODULES,$REPORT_DIR/**,docs/_static/**,**/*.png,**/*.jpg"
# Exclude the report dir as well
- 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
variables:
GIT_DEPTH: 0

View File

@ -11,5 +11,5 @@ components/freertos/*.c
components/freertos/include/freertos/*.h
# wpa_supplicant upstream code
components/wpa_supplicant/src/*
components/wpa_supplicant/include/*.h
components/wpa_supplicant/src/**
components/wpa_supplicant/include/**