mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
6602d6b7f2
This adds initial code style guide. Only section on code formatting is written, other sections to be added later. Also adds scripts to format code using astyle.
10 lines
203 B
Bash
10 lines
203 B
Bash
#!/bin/bash
|
|
# Runs astyle with parameters which should be checked in a pre-commit hook
|
|
astyle \
|
|
--style=otbs \
|
|
--indent=spaces=4 \
|
|
--convert-tabs \
|
|
--keep-one-line-statements \
|
|
--pad-header \
|
|
"$@"
|