Contributing
Contributions of every size are welcome: bug reports, documentation fixes, new languages, new ecosystems, new analyzers, and ideas. The full guide, with exact commands, is CONTRIBUTING.md. In short:
git clone https://github.com/sanskarIN/RepoDNA.git
cd RepoDNA
cargo xtask setup # check prerequisites, install, build, and write fixtures
cargo test --workspace # run the Rust tests
npm test # run the web tests
cargo run -p repodna-cli -- serve # try your changeGood places to start#
| Area | Where | Guide |
|---|---|---|
| A language RepoDNA does not know yet | crates/repodna-parser/src/builtin.rs, or a plugin |
Adding a language |
| A dependency ecosystem | crates/repodna-dependencies/src/providers/ |
Adding an ecosystem |
| A false positive or a missed signal | The analyzer crate, plus a fixture or test that shows it | Adding an analyzer or a finding |
| A report section or a chart | crates/repodna-report/, apps/web/src/ |
Adding a report section |
| An example plugin | plugins/ |
Plugins |
| Documentation | docs/ |
This site |
Documentation contributions#
A small guide fix is a useful contribution. When you add or revise a page:
- Link it from the documentation index if readers should find it in the main navigation; use relative paths for other internal links.
- Check commands, option names and examples against the CLI reference or the corresponding implementation. Avoid presenting unreleased features as already available in a published stable version.
- For changes to behavior, update the relevant FAQ, troubleshooting and getting-started guide where appropriate.
- Build and validate the documentation site:
npm ci
node packaging/docs/build.mjs --out apps/web/dist/docs --checkThe builder checks local file links and heading anchors. See the documentation-site development guide for local preview instructions.
Principles for changes#
- Every conclusion needs evidence, a method, and its limitations. Do not add signals that cannot say why they fired.
- No network access or code execution in analyzers; no telemetry anywhere.
- Keep results deterministic and add tests with realistic samples.
- Keep the user interface accessible: keyboard operable, readable without color, with a table view for every chart.
Please read the Code of Conduct before participating, and report security issues privately as described in SECURITY.md.