zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.13k stars 6.22k forks source link

Checkpatch: add option to exclude files, not only directories #74957

Open ktanska opened 3 weeks ago

ktanska commented 3 weeks ago

Is your enhancement proposal related to a problem? Please describe. Checkpatch can be used on patches, and it is a great feature, that it is available as GH action. We are using it to check patches in repository which has not ordered structure: mdadm repo and it is needed to exclude some directories with bash tests, systemd files etc. to not check them while checkpatch review. In main directory we have also few files, which we don't want to check: udev-rules, documentation, test - bash script.

Describe the solution you'd like It would be great if checkpatch.conf will contain flag to exclude files, or exisiting --exclude flag will be extended to files, not only directories.

Additional context Commit introducing --exclude flag

github-actions[bot] commented 3 weeks ago

Hi @ktanska! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙