|
| 1 | +# Contributing |
| 2 | + |
| 3 | +Thanks for contributing to `codebase-intelligence`. |
| 4 | + |
| 5 | +## Development setup |
| 6 | + |
| 7 | +```bash |
| 8 | +git clone https://github.com/bntvllnt/codebase-intelligence.git |
| 9 | +cd codebase-intelligence |
| 10 | +pnpm install |
| 11 | +``` |
| 12 | + |
| 13 | +Useful commands: |
| 14 | + |
| 15 | +```bash |
| 16 | +pnpm dev |
| 17 | +pnpm lint |
| 18 | +pnpm typecheck |
| 19 | +pnpm build |
| 20 | +pnpm test |
| 21 | +``` |
| 22 | + |
| 23 | +## Workflow |
| 24 | + |
| 25 | +- Create a feature branch from `main` |
| 26 | +- Keep changes focused and atomic |
| 27 | +- Prefer one concern per pull request |
| 28 | +- Open a PR early if you want feedback on scope |
| 29 | + |
| 30 | +## Commit conventions |
| 31 | + |
| 32 | +This repository uses conventional-style commit subjects. |
| 33 | + |
| 34 | +Examples: |
| 35 | +- `feat: add module-depth CLI command` |
| 36 | +- `fix: normalize Windows paths in MCP handlers` |
| 37 | +- `docs: clarify MCP setup` |
| 38 | +- `test: add regression coverage for dead exports` |
| 39 | + |
| 40 | +The release workflow generates changelog sections from commit prefixes, so prefer: |
| 41 | +- `feat:` for user-visible features |
| 42 | +- `fix:` for user-visible fixes |
| 43 | +- `docs:` / `test:` / `chore:` for non-feature work |
| 44 | + |
| 45 | +## Testing expectations |
| 46 | + |
| 47 | +Before opening a PR, run: |
| 48 | + |
| 49 | +```bash |
| 50 | +pnpm lint |
| 51 | +pnpm typecheck |
| 52 | +pnpm build |
| 53 | +pnpm test |
| 54 | +``` |
| 55 | + |
| 56 | +Testing guidance: |
| 57 | +- prefer real integration coverage over isolated mocking |
| 58 | +- add regression tests for bug fixes |
| 59 | +- update docs when CLI, MCP, or metrics behavior changes |
| 60 | + |
| 61 | +## Pull requests |
| 62 | + |
| 63 | +Please include: |
| 64 | +- what changed |
| 65 | +- why it changed |
| 66 | +- any CLI or MCP surface changes |
| 67 | +- validation performed |
| 68 | + |
| 69 | +If your change affects users, update the relevant docs in `docs/` and `README.md`. |
| 70 | + |
| 71 | +## Security |
| 72 | + |
| 73 | +Do not open public issues for suspected vulnerabilities. |
| 74 | +See [SECURITY.md](SECURITY.md). |
| 75 | + |
| 76 | +## Code of conduct |
| 77 | + |
| 78 | +By participating, you agree to follow the [Code of Conduct](CODE_OF_CONDUCT.md). |
0 commit comments