Thanks for your interest in contributing! 馃帀
git clone https://github.com/raye-deng/open-code-review.git
cd open-code-review
pnpm install
pnpm build# Run tests
pnpm test
# Run a single package tests
pnpm --filter @opencodereview/core test
pnpm --filter @opencodereview/cli test
# Build all packages
pnpm build
# Lint
pnpm lintpackages/
core/ # Detection engine + scoring
cli/ # CLI tool (ocr command)
github-action/ # GitHub Action wrapper
Open an issue with:
- OS and Node.js version
- CLI command that triggered the bug
- Expected vs actual behavior
- Sample code (if applicable)
Open an issue with the enhancement label. Describe:
- The use case
- Expected behavior
- Any alternatives you've considered
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Write code and tests
- Ensure tests pass:
pnpm test - Commit with a clear message
- Push and open a Pull Request
Open Code Review uses pattern-based detection. To add a new rule:
- Find the relevant detector in
packages/core/src/detectors/ - Add your pattern with tests in
packages/core/tests/ - Update documentation in
docs/
- Create a new parser in
packages/core/src/languages/ - Create a new extractor in
packages/core/src/parser/extractors/ - Register the language in
packages/core/src/languages/registry.ts
- TypeScript strict mode
- Prettier for formatting
- ESLint for linting
- Write tests for new functionality
- Be respectful and constructive
- Focus on the code, not the person
- Ask questions before assuming
- Welcome newcomers
By contributing, you agree that your code will be under BSL-1.1.