web/documents/contributing.mdx
Contributions are welcome from anyone.
When submitting PRs, please:
Patches submitted in issues, email, or elsewhere may be ignored.
Code should be formatted with clang-format. If you configure Conky with
cmake -DCHECK_CODE_QUALITY=ON, you can run make clang-format to format the
code automatically.
To make life easier, you can use
lefthook to handle some basic
linting with a pre-commit hook, as defined in lefthook.yml.
Follow the installation guide for
lefthook,
then run lefthook install to enable the hooks.
Conky uses the Catch2 unit testing framework. If you add new functions or methods, please consider adding unit tests for them. Additional tests for existing code are also welcome.