Thanks for helping make remove-comments better.
git clone https://github.com/isaka-james/comments-remover.git
cd comments-remover
cargo testEverything runs on stable Rust 1.74 or newer with no dependencies.
- The source contains zero comments, including doc comments. Choose names that
make the code read on its own. If something truly needs prose, it belongs in
docs/ARCHITECTURE.md. - No new dependencies.
cargo fmtandcargo clippy -- -D warningsmust pass.- Every behavior change ships with a test.
- When parsing is uncertain, keep the comment. Never risk breaking code.
- Add a
Syntaxdefinition insrc/language/defs.rs, or reuse an existing one. - Register it in
src/language/registry.rswith extensions and file names. - If the language has constructs the table cannot express, add a hook in
src/engine/hooks.rsand wire it throughHookId. - Add a case to
tests/language_matrix.rscovering a comment, a string that looks like a comment, and any tricky construct. - Add a row to
docs/LANGUAGES.md.
Use short lowercase prefixes matching the history: core:, test:, docs:,
ci:, fix:. One logical change per commit.
Fill in the template, keep the diff focused, and make sure cargo test is
green. Small, reviewed steps beat big drops.