tracy

Crates.iotracy
lib.rstracy
version0.1.1
created_at2025-12-10 23:26:59.022686+00
updated_at2025-12-12 20:05:43.202616+00
descriptionA tool for tracking in-code markers for requirement traceability
homepage
repositoryhttps://github.com/fordtom/tracy
max_upload_size
id1978923
size64,294
Tom Ford (fordtom)

documentation

README

Tracy

Scans codebases for requirement references in doc comments and outputs JSON.

Usage

tracy --slug REQ --root ./src

Finds {SLUG}-{NUMBER} formatted references in comments across your codebase, returning JSON objects containing a list of appearances and their locations:

{
  "REQ-123": [
    {
      "file": "src/lib.rs",
      "line": 42
    }
  ],
  "REQ-456": [
    {
      "file": "src/lib.rs",
      "line": 22
    },
    {
      "file": "src/main.rs",
      "line": 10
    }
  ]
}

Options

Flag Description
--slug, -s Slug pattern to match (e.g., REQ, LIN)
--root Root directory to scan (default: .)
--output, -o Write output to file
--quiet, -q Suppress stdout output
--include-vendored Include vendored files (per .gitattributes)
--include-generated Include generated files (per .gitattributes)
--include-submodules Include git submodules

Supported Languages

All languages supported by ast-grep, including Rust, TypeScript, JavaScript, Python, Go, Java, C, C++, and more.

License

MIT

Commit count: 0

cargo fmt