First off, thank you for considering contributing to libprocman — your interest and effort mean a lot! Whether you're fixing bugs, adding new features, improving documentation, or writing tests, your contributions are always welcome.
- Fork the repository.
- Clone your fork:
git clone https://github.com/provrb/libprocman.git cd libprocman
- Create a new branch:
git checkout -b feature/your-feature-name
If you make changes to the core library, you must write or update a test in tests.cpp
. Here’s how:
- Add a test case that covers the functionality you've added or modified.
- Use the
Tests
class to define your expected result. - Build and run tests:
cmake -B build -G Ninja cmake --build build ./build/libprocman.exe
- Ensure all tests pass before opening a pull request.
- Follow the existing naming conventions and structure.
- Keep your code clean and readable.
- Prefer clarity over cleverness.
- Avoid unnecessary dependencies.
Before submitting a pull request:
- Make sure your branch is up to date with
main
:git fetch origin git rebase origin/main
- Squash commits if possible for a clean history.
- Write a clear and descriptive pull request message.
- Reference any related issue(s) using
#issue_number
syntax.
- My code follows the project's code style.
- I have written tests that prove my fix is effective or my feature works.
- All existing and new tests pass.
- I have commented my code, especially in hard-to-understand areas.
- I have squashed related commits where appropriate.
- New to the project? Look through issues labeled
good first issue
orhelp wanted
. - Want to suggest something new? Open an issue before making major changes.
- Need help? Open an issue or join the discussion in existing ones.
Thanks again for helping make libprocman better!