|
| 1 | +# Contributing to pro_binary |
| 2 | + |
| 3 | +Thank you for your interest in contributing! 🎉 |
| 4 | + |
| 5 | +## Getting Started |
| 6 | + |
| 7 | +1. Fork the repository |
| 8 | +2. Clone your fork: `git clone https://github.com/YOUR_USERNAME/pro_binary.git` |
| 9 | +3. Create a branch: `git checkout -b feature/my-feature` |
| 10 | +4. Install dependencies: `dart pub get` |
| 11 | + |
| 12 | +## Development |
| 13 | + |
| 14 | +### Running Tests |
| 15 | + |
| 16 | +```bash |
| 17 | +# Run all tests |
| 18 | +dart test |
| 19 | + |
| 20 | +# Run specific test file |
| 21 | +dart test test/binary_reader_test.dart |
| 22 | + |
| 23 | +# Run with coverage |
| 24 | +dart pub global activate coverage |
| 25 | +dart pub global run coverage:test_with_coverage |
| 26 | +``` |
| 27 | + |
| 28 | +### Code Style |
| 29 | + |
| 30 | +```bash |
| 31 | +# Format code |
| 32 | +dart format . |
| 33 | + |
| 34 | +# Analyze code |
| 35 | +dart analyze |
| 36 | + |
| 37 | +# Fix common issues |
| 38 | +dart fix --apply |
| 39 | +``` |
| 40 | + |
| 41 | +### Before Submitting |
| 42 | + |
| 43 | +- [ ] All tests pass (`dart test`) |
| 44 | +- [ ] Code is formatted (`dart format .`) |
| 45 | +- [ ] No analysis issues (`dart analyze`) |
| 46 | +- [ ] Added tests for new features |
| 47 | +- [ ] Updated CHANGELOG.md |
| 48 | +- [ ] Updated documentation if needed |
| 49 | + |
| 50 | +## Pull Request Process |
| 51 | + |
| 52 | +1. Update the README.md with details of changes if applicable |
| 53 | +2. Update the CHANGELOG.md with a note describing your changes |
| 54 | +3. Ensure all tests pass and code is properly formatted |
| 55 | +4. Submit a pull request with a clear description of changes |
| 56 | + |
| 57 | +## Reporting Bugs |
| 58 | + |
| 59 | +Use the [Bug Report template](.github/ISSUE_TEMPLATE/bug_report.md) and include: |
| 60 | + |
| 61 | +- Clear description of the issue |
| 62 | +- Steps to reproduce |
| 63 | +- Expected vs actual behavior |
| 64 | +- Code sample |
| 65 | +- Environment details |
| 66 | + |
| 67 | +## Suggesting Features |
| 68 | + |
| 69 | +Use the [Feature Request template](.github/ISSUE_TEMPLATE/feature_request.md) and describe: |
| 70 | + |
| 71 | +- The feature you'd like |
| 72 | +- Your use case |
| 73 | +- Proposed API (if applicable) |
| 74 | +- Alternative solutions considered |
| 75 | + |
| 76 | +## Code of Conduct |
| 77 | + |
| 78 | +- Be respectful and inclusive |
| 79 | +- Provide constructive feedback |
| 80 | +- Focus on what is best for the community |
| 81 | + |
| 82 | +## Questions? |
| 83 | + |
| 84 | +Feel free to open a [Discussion](https://github.com/pro100andrey/pro_binary/discussions) or reach out to maintainers. |
| 85 | + |
| 86 | +Thank you for contributing! 🚀 |
0 commit comments