Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.75 KB

CONTRIBUTING.md

File metadata and controls

77 lines (54 loc) · 2.75 KB

Contributing to JavaChatX

Thank you for your interest in contributing to JavaChatX! We welcome contributions from the community to help make this AI agent development framework even better.

📋 How to Contribute

There are many ways you can contribute to JavaChatX:

  1. Report Bugs: If you find a bug, please open an issue with a detailed description
  2. Suggest Features: Have ideas for new features? Open an issue to discuss them
  3. Write Code: Help us implement new features or fix bugs
  4. Improve Documentation: Help us improve our documentation and examples
  5. Review Pull Requests: Provide feedback on open pull requests

🛠️ Development Setup

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/JavaChatX.git
  3. Create a new branch: git checkout -b feature/your-feature-name
  4. Make your changes
  5. Run tests: mvn test
  6. Commit your changes: git commit -am "Add some feature"
  7. Push to the branch: git push origin feature/your-feature-name
  8. Create a new Pull Request

📝 Coding Standards

  • Follow standard Java naming conventions
  • Write clear, self-documenting code
  • Add Javadoc comments for public methods and classes
  • Write unit tests for new functionality
  • Keep pull requests focused on a single feature or bug fix

🧪 Testing

  • All new code should include appropriate unit tests
  • Run existing tests before submitting changes: mvn test
  • Ensure all tests pass before submitting a pull request

🔍 Code Quality

We maintain high code quality standards through automated tools:

  • Checkstyle: Code must pass Checkstyle validation
  • Test Coverage: New code should maintain or improve test coverage
  • Code Analysis: SonarCloud analysis should show no critical issues

To run all quality checks locally:

mvn verify

This will execute:

  1. Checkstyle validation
  2. Unit tests
  3. Code coverage analysis

📚 Documentation

  • Update README.md if you change functionality
  • Add Javadoc comments to new classes and methods
  • Document public APIs clearly

🔄 Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a build
  2. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters
  3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent
  4. Your Pull Request will be reviewed by maintainers, who may request changes
  5. Once approved, your Pull Request will be merged

📞 Questions?

If you have any questions about contributing, feel free to open an issue or contact the maintainers.

Thank you for helping make JavaChatX better!