zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
43 stars 11 forks source link

workflow: setup checkpatch workflow #58

Closed DhruvaG2000 closed 1 year ago

DhruvaG2000 commented 1 year ago

Sets up a workflow that will take care of code formatting in PRs

DhruvaG2000 commented 1 year ago

FYI, forced push after approval changes:

diff --git a/.checkpatch.conf b/.checkpatch.conf
new file mode 100644
index 0000000..57de7eb
--- /dev/null
+++ b/.checkpatch.conf
@@ -0,0 +1,8 @@
+# This isn't actually a Linux kernel tree
+--no-tree
+
+--ignore FILE_PATH_CHANGES
+--ignore COMPLEX_MACRO
+--ignore NEW_TYPEDEFS
+--ignore CONST_STRUCT
+--ignore SPDX_LICENSE_TAG