Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 871 Bytes

coding_style.md

File metadata and controls

19 lines (13 loc) · 871 Bytes

Coding Style

The coding style used for the Taskwarrior is based on the Google C++ Style Guide, with small modifications in the line length.

Automatic formatting

In order to have consistancy and automatic formatting pre-commit is used to apply clang-format and black are used. In order to set them up locally please run:

pip install pre-commit
pre-commit install

For more information refer to the quick-start of pre-commit. The setup is also included in the CI, hence if one can not install it automatically then the CI will take care for it in the PR.

Rust

Rust code should be formatted with rustfmt and generally follow Rust style guidelines.