mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-01 03:10:46 +00:00
* Remove unused lib/generated/i18n.dart * Use `fvm dart format .` * Add contributing guidelines * Enforce dart format * Add `dart format off` directive to generated files
1.5 KiB
1.5 KiB
Contributing to InvenTree App
Thank you for considering contributing to the InvenTree App! This document outlines some guidelines to ensure smooth collaboration.
Code Style and Formatting
Dart Formatting
We enforce consistent code formatting using Dart's built-in formatter. Before submitting a pull request:
-
Run the formatter on your code:
fvm dart format .
-
Our CI pipeline will verify that all code follows the standard Flutter/Dart formatting rules. Pull requests with improper formatting will fail CI checks.
General Guidelines
- Write clear, readable, and maintainable code
- Include comments where necessary
- Follow Flutter/Dart best practices
- Write tests for new features when applicable
Pull Request Process
- Fork the repository and create a feature branch
- Make your changes
- Ensure your code passes all tests and linting
- Format your code using
fvm dart format
- Submit a pull request with a clear description of the changes
- Address any review comments
Development Setup
- Ensure you have Flutter installed (we use Flutter Version Management)
- Check the required Flutter version in the
.fvmrc
file - Install dependencies with
fvm flutter pub get
- Run tests with
fvm flutter test
Reporting Issues
When reporting issues, please include:
- Clear steps to reproduce the issue
- Expected behavior
- Actual behavior
- Screenshots if applicable
- Device/environment information
Thank you for contributing to the InvenTree App!