Added -z2 (linux lf)

This commit is contained in:
Austen Adler 2017-01-08 00:37:44 -05:00
parent cc158ba3b7
commit 8c8497745b
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -9,6 +9,7 @@ GLOB=( **/*.java )
# -xc : Brace attached to class names # -xc : Brace attached to class names
# --style=google : google style (similar to 1tbs) # --style=google : google style (similar to 1tbs)
# -j : Always add brackets (even on one line if statements) # -j : Always add brackets (even on one line if statements)
# -z2 : Force Linux lineending
# -s2 : Three spaces # -s2 : Three spaces
# -xG : Indent modifiers # -xG : Indent modifiers
# -xe : Erase blank lines # -xe : Erase blank lines
@ -20,7 +21,7 @@ GLOB=( **/*.java )
# -n : Don't make a backup # -n : Don't make a backup
# -p : Pad operators # -p : Pad operators
# -H : Pad header (space after if, for, while) # -H : Pad header (space after if, for, while)
OPTS=( --mode=java -xc --style=google -j -s2 -xG -xe -S -K -N -xn -xl -n -p -H ) OPTS=( --mode=java -xc --style=google -j -z2 -s2 -xG -xe -S -K -N -xn -xl -n -p -H )
# Colorize output if you can # Colorize output if you can
if which colout>/dev/null; then if which colout>/dev/null; then
astyle $OPTS $GLOB|\grep -P '^(?!Unchanged)'|colout '(Formatted)' green||true astyle $OPTS $GLOB|\grep -P '^(?!Unchanged)'|colout '(Formatted)' green||true