forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use code style defined in Arduino project to check code style of the examples. The check is done by formatting all files with astyle and checking whether any changes have been introduced.
- Loading branch information
Showing
3 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Code formatting rules for Arduino examples, taken from: | ||
# | ||
# https://github.com/arduino/Arduino/blob/master/build/shared/examples_formatter.conf | ||
# | ||
|
||
mode=c | ||
lineend=linux | ||
|
||
# 2 spaces indentation | ||
indent=spaces=2 | ||
|
||
# also indent macros | ||
indent-preprocessor | ||
|
||
# indent classes, switches (and cases), comments starting at column 1 | ||
indent-classes | ||
indent-switches | ||
indent-cases | ||
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 | ||
add-braces | ||
|
||
style=java | ||
attach-namespaces | ||
attach-classes | ||
attach-inlines | ||
attach-extern-c | ||
indent-modifiers | ||
indent-namespaces | ||
indent-labels | ||
indent-preproc-block | ||
indent-preproc-define | ||
indent-preproc-cond | ||
unpad-paren | ||
add-braces | ||
remove-comment-prefix |