Thank you for your interest in contributing to the Sorting Library project! Contributions are welcome and greatly appreciated. This guide outlines the process for contributing to the project.
-
Reporting Bugs
- If you encounter a bug, please open an issue.
- Include details about the environment (e.g., OS, compiler version) and steps to reproduce the issue.
-
Suggesting Enhancements
- Have ideas for improvements? Let us know by creating an issue and describing your suggestion in detail.
-
Submitting Code
- Add new sorting algorithms.
- Improve documentation or examples.
- Refactor or optimize existing code.
- Fix bugs or other issues.
-
Improving Documentation
- Help improve the
README.md, comments, or function documentation. - Translate documentation into other languages.
- Help improve the
- Click the "Fork" button at the top of this repository.
- Clone the forked repository to your machine:
git clone https://github.com/your-username/sorting-library-c.git cd sorting-library-c
Ensure you have:
- GCC or another C compiler.
- CMake for build management.
Always create a new branch for your work:
git checkout -b feature/your-feature-name- Edit code or documentation.
- Test your changes thoroughly.
Write a descriptive commit message:
git add .
git commit -m "Add feature: Describe your changes"Push your branch to your forked repository:
git push origin feature/your-feature-nameOpen a pull request on the original repository:
- Provide a clear title and description of your changes.
- Place new header files in the
headers/directory. - Place implementations in separate
.cfiles in theheaders/directory.
- Use consistent indentation (spaces or tabs, match the existing style).
- Use descriptive function and variable names.
- Document all functions with:
- Description of purpose.
- Parameters and return values.
- Ensure all features work as intended before submission.
- Include test cases for new algorithms or features in
main.cif applicable.
If you find bugs or have feature requests, submit an issue:
- Use a clear and descriptive title.
- Provide detailed steps to reproduce the issue or describe the feature.
We are committed to fostering an inclusive and respectful community. Please follow our Code of Conduct to ensure a welcoming environment for all contributors.
Thank you for contributing to the Sorting Library in C!