Shogun is a large project with many contributors and we have decided to define some general coding guidelines which form a "Shogun Standard" which should be followed when writing code for the toolbox. That was made to maintain a clean and polished code-base. Shogun use an automatic style checker (namely Clang Format) to verify if code follows Shogun's coding guidelines. Please make sure that your patches conform to these guidelines, otherwise our Continuous Integration tools will spot these errors and they will mark your pull requests as failed.
You can use our custom script, located in <your_shogun_source_dir>/scripts/check_format.sh
to see if the code you have written follows our guidelines. The script will also give you instruction on how to fix style errors.
Note that to use the script, clang-format-3.8
must be installed on your system.