diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-06 12:19:07 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 12:43:23 +0000 |
commit | feea4b250ba72984ca4d53bac44fa7dc9a31f63f (patch) | |
tree | e904fb2cd85f0634e809330b0a109c78fde339e2 /scripting | |
parent | 1da153b617b80887680be65c1854ef8080c2e1c9 (diff) |
scripting: Format java code by using astyle tool
Change-Id: Ifcd90612f22282c16efdbf4d300b8164bf68f760
Reviewed-on: https://gerrit.libreoffice.org/11304
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'scripting')
-rwxr-xr-x | scripting/Format_java_code.sh | 2 | ||||
-rwxr-xr-x | scripting/astyle-java.conf | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/scripting/Format_java_code.sh b/scripting/Format_java_code.sh new file mode 100755 index 000000000000..edf75d1c5ea6 --- /dev/null +++ b/scripting/Format_java_code.sh @@ -0,0 +1,2 @@ +#!/bin/bash +astyle --options=astyle-java.conf --verbose --recursive ./*.java diff --git a/scripting/astyle-java.conf b/scripting/astyle-java.conf new file mode 100755 index 000000000000..3a6ea94f85d0 --- /dev/null +++ b/scripting/astyle-java.conf @@ -0,0 +1,19 @@ +--style=java +--mode=java +--indent-switches +--indent-cases +--min-conditional-indent=0 +--max-instatement-indent=40 +--break-blocks +--unpad-paren +--align-reference=name +--pad-oper +--unpad-paren +--add-brackets +-s4 +--indent-col1-comments +--lineend=linux +--ignore-exclude-errors +--suffix=none +--preserve-date +--formatted |