Add style check matching RP2040 core (#740)
Will let us backport the BackgroundAudio patches to libhelix easier and clean up some ugly formatting we've let develop.
This commit is contained in:
1 parent
62dd23a74a
commit
f9e72dbb21
434 files changed
+94604
-93082
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Code formatting rules for Arduino examples, taken from:
|
||||
#
|
||||
# https://github.com/arduino/Arduino/blob/master/build/shared/examples_formatter.conf
|
||||
#
|
||||
|
||||
mode=c
|
||||
lineend=linux
|
||||
style=java
|
||||
|
||||
# 4 spaces indentation
|
||||
indent=spaces=4
|
||||
|
||||
# also indent macros
|
||||
#indent-preprocessor
|
||||
|
||||
# indent classes, switches (and cases), comments starting at column 1
|
||||
indent-col1-comments
|
||||
|
||||
# put a space around operators
|
||||
pad-oper
|
||||
|
||||
# put a space after if/for/while
|
||||
pad-header
|
||||
|
||||
# if you like one-liners, keep them
|
||||
keep-one-line-statements
|
||||
|
||||
attach-closing-while
|
||||
unpad-paren
|
||||
pad-oper
|
||||
remove-comment-prefix
|
||||
add-braces
|
||||
Reference in new issue
Block a user