# pre_check stage clang_tidy_check: extends: - .pre_check_template - .rules:patterns:clang_tidy artifacts: paths: - clang_tidy_reports/ when: always expire_in: 1 day variables: IDF_TOOLCHAIN: clang script: - run_cmd idf_clang_tidy $(cat tools/ci/clang_tidy_dirs.txt | xargs) --output-path clang_tidy_reports --limit-file tools/ci/static-analysis-rules.yml --xtensa-include-dir check_pylint: extends: - .pre_check_template - .rules:patterns:python-files needs: - pipeline_variables artifacts: when: always reports: codequality: pylint.json expire_in: 1 week script: - | if [ -n "$CI_MERGE_REQUEST_IID" ]; then export files=$(echo "$GIT_DIFF_OUTPUT" | grep ".py$" | xargs); else export files=$(git ls-files "*.py" | xargs); fi - if [ -z "$files" ]; then echo "No python files found"; exit 0; fi - run_cmd pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:pylint.json $files