diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-05-09 15:28:09 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-05-09 20:46:16 +0200 |
| commit | d4e54e9f35d532062533f1d369c159810b01d224 (patch) | |
| tree | 7046ff72a41a8b0ad2e40e1d4aa3b191d03f6380 /scripts/astyle.options | |
| parent | 8650b70e06408d394c1708846b6fc2d86cf14079 (diff) | |
Add mechanisms to reformant and check code style (#128)
Use an internal version of astyle (astyle 3.0). Scripts taken from QGIS.
astyle.options from https://github.com/uclouvain/openjpeg/issues/128
scripts/prepare-commit.sh can be used locally to automatically reformat
edited files.
Travis-CI will run scripts/verify-indentation.sh to verify committed files.
Diffstat (limited to 'scripts/astyle.options')
| -rw-r--r-- | scripts/astyle.options | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/astyle.options b/scripts/astyle.options new file mode 100644 index 00000000..c92ea7f1 --- /dev/null +++ b/scripts/astyle.options @@ -0,0 +1,11 @@ +--convert-tabs +--lineend=linux +--indent=spaces=4 +--style=kr +--add-brackets +--max-code-length=80 +--break-after-logical +--pad-header +--pad-oper +--unpad-paren +--suffix=none |
