zephyr/scripts
Alberto Escolar Piedras f9e3084daf scripts/checkpatch: Limit which feature test macros we prevent
Unfortunately this check as it is today is causing trouble, while
not checking too well for what it intended. Let's reduce its scope
until a better solution has been found.

Background:
This check intends to ensure coding guidelines Rules A.4 and A.5
are followed, but how it is implemented it does not work well enough.
1. These rules only apply to the kernel and some other parts of the
embedded codebase respectively, but this check is performed on the
whole tree.
2. This check works under the assumption that any attempt to set
these macros in source files is a violation of these rules, while
this is not necessary the case, as there are legitimate uses for these.
(Specially for _POSIX_C_SOURCE and _XOPEN_SOURCE)

This check also fails to detect these macros being set in cmake files,
so if users are faced with this failure they can trivially bypass it.

Having a CI check which produces too many false positives, while
at the same time being very easy to bypass is not a desirable situation
as that can result in lack of trust for this type of checks,
and an overall tendency to override these CI faults,
and overlooking actual violations of these rules by reviewers.

This check was originally added in
b021dece98

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-26 16:21:02 -04:00
..
build syscall: Export all emitted syscalls, enabling them for extensions 2024-03-20 16:26:54 +00:00
checkpatch
ci scripts: remove board name from the qualifiers in list_boards.py 2024-03-26 16:20:08 -04:00
coccinelle
coredump scripts: coredump: coredump_gdbserver in pipeline 2024-03-26 08:51:49 -04:00
dts gen_defines: output the interrupt level of a node 2024-01-23 06:48:16 -05:00
footprint scripts/size_report: display object address in overview 2024-03-26 10:49:04 -04:00
generate_usb_vif
gitlint gitlint: exclude long line with co-authored-by 2023-09-27 06:20:16 -04:00
kconfig scripts: kconfig: Add substring function 2024-03-21 20:10:46 +01:00
logging/dictionary scripts: logging/dictionary/sys-t: remove escape between CDATA 2023-12-15 14:34:15 +01:00
native_simulator native_simulator: constify 'buffer' argument in nsi_host_write() 2024-02-26 11:36:21 +01:00
net tests|scripts/net: Change native_posix references to native_sim 2024-03-20 15:43:05 +01:00
pylib twister: unify test scenario path to backslash 2024-03-26 08:48:13 -04:00
pylint/checkers
release
schemas twister: add flash-before option 2024-03-25 18:37:49 -04:00
support
tests scripts: tests: Move --ninja test to test_tooling 2024-03-26 11:15:41 -05:00
tracing
utils hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
west_commands scripts: remove board name from the qualifiers in list_boards.py 2024-03-26 16:20:08 -04:00
.gitignore
checkpatch.pl scripts/checkpatch: Limit which feature test macros we prevent 2024-03-26 16:21:02 -04:00
checkstack.pl
coccicheck
dump_bugs_pickle.py
gen_gcov_files.py
get_maintainer.py MAINTAINERS: add 2 new keys: tags, tests 2023-12-22 09:54:12 +01:00
github_helpers.py
list_boards.py scripts: Ignore duplicate roots in list_boards/hardware 2024-03-26 16:20:08 -04:00
list_hardware.py scripts: Ignore duplicate roots in list_boards/hardware 2024-03-26 16:20:08 -04:00
make_bugs_pickle.py
requirements-base.txt
requirements-build-test.txt scripts: coverage: gcovr to ignore negative counters 2023-11-03 07:57:10 -04:00
requirements-compliance.txt
requirements-extras.txt scripts/requirements: bump imgtool to 2.0.0 2024-02-12 23:26:04 +01:00
requirements-run-test.txt scripts: tests: --package-artifacts fix, blackbox tests 2024-03-11 16:12:55 -04:00
requirements.txt
series-push-hook.sh
set_assignees.py scripts: set_maintainer: fix author == maintainer fallback logic 2024-01-16 14:24:05 -05:00
snippets.py terminology: adopt CMake, python, and Kconfig code to use qualifiers 2024-03-21 15:32:17 +01:00
spelling.txt spelling: add enabeld typo 2024-03-06 19:27:28 -05:00
tags.sh
twister twister: implement simulation_exclude filter 2023-12-19 07:33:39 -05:00
valgrind.supp valgrind: Update POSIX soc no cpu cleanup suppression 2023-11-29 15:33:49 +01:00
west-commands.yml west: commands: Add bindesc command 2023-09-28 07:39:09 -04:00
zephyr_module.py scripts: kconfig: Always generate ZEPHYR_*_MODULE 2023-10-24 10:53:24 +02:00