]> granicus.if.org Git - openjpeg/commit
Add mechanisms to reformant and check code style (#128)
authorEven Rouault <even.rouault@spatialys.com>
Tue, 9 May 2017 13:28:09 +0000 (15:28 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Tue, 9 May 2017 18:46:16 +0000 (20:46 +0200)
commitd4e54e9f35d532062533f1d369c159810b01d224
tree7046ff72a41a8b0ad2e40e1d4aa3b191d03f6380
parent8650b70e06408d394c1708846b6fc2d86cf14079
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.
26 files changed:
.gitignore
.travis.yml
CMakeLists.txt
INSTALL.md
README.md
scripts/astyle.options [new file with mode: 0644]
scripts/astyle.sh [new file with mode: 0755]
scripts/prepare-commit.sh [new file with mode: 0755]
scripts/remove_temporary_files.sh [new file with mode: 0755]
scripts/verify-indentation.sh [new file with mode: 0755]
thirdparty/CMakeLists.txt
thirdparty/astyle/ASBeautifier.cpp [new file with mode: 0755]
thirdparty/astyle/ASEnhancer.cpp [new file with mode: 0755]
thirdparty/astyle/ASFormatter.cpp [new file with mode: 0755]
thirdparty/astyle/ASLocalizer.cpp [new file with mode: 0755]
thirdparty/astyle/ASLocalizer.h [new file with mode: 0755]
thirdparty/astyle/ASResource.cpp [new file with mode: 0755]
thirdparty/astyle/CMakeLists.txt [new file with mode: 0644]
thirdparty/astyle/LICENSE.md [new file with mode: 0755]
thirdparty/astyle/astyle.h [new file with mode: 0755]
thirdparty/astyle/astyle_main.cpp [new file with mode: 0755]
thirdparty/astyle/astyle_main.h [new file with mode: 0755]
thirdparty/astyle/scripts/opjstyle [new file with mode: 0755]
tools/ctest_scripts/travis-ci.cmake
tools/travis-ci/install.sh
tools/travis-ci/run.sh