Thank you for considering contributing to the R-Type project! This document outlines the process for submitting code and other changes. Please follow these guidelines to ensure smooth collaboration.
- All pull requests must reference an issue and be prefixed with
RTP-XX, whereXXis the issue number. - Ensure that the title of your pull request is clear and follows the format:
RTP-XX: [Description of the change]. - Link the relevant issue in the body of the pull request.
We use the Conventional Commits standard for commit messages. Please ensure your commit messages follow this format:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Examples:
feat(client): add player movement featurefix(server): resolve crash on connection timeout
Common commit types:
feat: A new featurefix: A bug fixdocs: Documentation only changesstyle: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)refactor: A code change that neither fixes a bug nor adds a featuretest: Adding missing tests or correcting existing testschore: Changes to the build process or auxiliary tools and libraries such as documentation generation
The code must conform to the Google C++ Style Guide. We enforce this style using clang-format and cpplint. Please ensure that your code passes the following checks before submitting:
- Run
make formatto format all.cpp,.tppand.hppfiles. - Run
make lintto check for any linting issues.
You can install these tools locally or run them via our provided Docker environment.
Please ensure all tests pass before submitting your pull request. You can run the tests using:
make test_runFor new features or bug fixes, include corresponding unit tests to verify the changes.
If you have any questions about contributing, feel free to open an issue or reach out to the maintainers.
Thank you for contributing to R-Type!