Skip to content

Commit

Permalink
nRF24#391 Add AStyle format config that will mostly adjust the indent…
Browse files Browse the repository at this point in the history
…ation to 3 spaces.
  • Loading branch information
wmarkow committed Mar 8, 2018
1 parent 57d3eef commit e1a46f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find . -regextype posix-egrep -regex ".*\.(c|h|cpp)" -exec astyle --options=nasa.ini -n {} \;
6 changes: 6 additions & 0 deletions nasa.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# NASA Coding Style Options
# Based on an old AStyle release.

indent=spaces=3
keep-one-line-blocks
keep-one-line-statements

0 comments on commit e1a46f6

Please sign in to comment.