Skip to content

Commit e1a46f6

Browse files
committed
nRF24#391 Add AStyle format config that will mostly adjust the indentation to 3 spaces.
1 parent 57d3eef commit e1a46f6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

format.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
find . -regextype posix-egrep -regex ".*\.(c|h|cpp)" -exec astyle --options=nasa.ini -n {} \;

nasa.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# NASA Coding Style Options
2+
# Based on an old AStyle release.
3+
4+
indent=spaces=3
5+
keep-one-line-blocks
6+
keep-one-line-statements

0 commit comments

Comments
 (0)