diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 49fc34fbf23..5673bb76afb 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -64,7 +64,8 @@ stages: # If grep succeeds and finds a match the test fails as we should # have no matches. - script: git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_' - include/configs `find arch -name config.h` && exit 1 || exit 0 + :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h + :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 - job: cppcheck displayName: 'Static code analysis with cppcheck' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 398fa2b45e2..aaf9d25abfc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,7 +131,8 @@ check for new CONFIG symbols outside Kconfig: # If grep succeeds and finds a match the test fails as we should # have no matches. - git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_' - include/configs `find arch -name config.h` && exit 1 || exit 0 + :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h + :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 # QA jobs for code analytics # static code analysis with cppcheck (we can add --enable=all later)