mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-21 06:56:11 -04:00
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 \
|
|
"$@"
|