All hand written code in this repo should be formatted by an auto formatter before committed to the repository. Code formatting is checked in CI.
- Follow the style of the auto formatter. If it has a bug, exclude the buggy line from formatting.
- Always use LF line ending.
- 2 space indentation, except for Python, which uses PEP8 style.
- 120 colomn width, except for Python, which uses PEP8 style.
- Data for compression test should not be auto formatted.
For linux environment, see github workflow check_format.yml. If you are using Mac or Windows, try to install similar tools.
format_all.sh is a helper script to auto format everything in this repository.
Do not bother it. Just minimize format only changes in your pull request. Someone else will fix it.