Repo X-Ray · 05 December 2026, 05:37 · read in 1.2s · nothing was executed
/srv/xela/workspace/.xray-oss/ripgrep
and 7 more.
| Language | Files | Lines | |
|---|---|---|---|
| Rust | 105 | 58,530 | |
| Shell | 3 | 849 | |
| Ruby | 1 | 23 | |
| Lua | 1 | 12 |
The fewest files that are the only import route into 94% of the code — 74 of 79 files. This is not a ranking, it is a cover: nothing in those 74 files can be reached by an import without passing through one of the entrances below. Each row also names the files the rest of that region depends on most, which is the vocabulary you will be reading it in.
| Read this, then what it leads to | Files it opens | Lines in that region | A test reaches it |
|---|---|---|---|
| 1. crates/core/main.rs where the program starts crates/core/flags/defs.rs ← 1 files, 8,153 lines crates/core/flags/hiargs.rs ← 1 files, 1,658 lines crates/core/flags/lowargs.rs ← 1 files, 786 lines | 17 | 13,376 | no |
| 2. crates/printer/src/lib.rs where the program starts crates/printer/src/standard.rs ← 1 files, 4,016 lines crates/printer/src/hyperlink/mod.rs ← 1 files, 1,205 lines crates/printer/src/summary.rs ← 1 files, 1,159 lines | 13 | 9,523 | no |
| 3. crates/searcher/src/lib.rs where the program starts crates/searcher/src/searcher/glue.rs ← 1 files, 1,641 lines crates/searcher/src/searcher/mod.rs ← 1 files, 1,155 lines crates/searcher/src/line_buffer.rs ← 1 files, 965 lines | 10 | 6,703 | yes |
| 4. crates/regex/src/lib.rs where the program starts crates/regex/src/literal.rs ← 1 files, 1,016 lines crates/regex/src/matcher.rs ← 1 files, 692 lines crates/regex/src/config.rs ← 1 files, 366 lines | 9 | 2,814 | no |
| 5. crates/ignore/src/lib.rs where the program starts crates/ignore/src/walk.rs ← 1 files, 3,051 lines crates/ignore/src/dir.rs ← 1 files, 1,726 lines crates/ignore/src/incremental.rs ← 1 files, 1,363 lines | 9 | 9,303 | yes |
| 6. crates/cli/src/lib.rs where the program starts crates/cli/src/decompress.rs ← 1 files, 739 lines crates/cli/src/process.rs ← 1 files, 316 lines crates/cli/src/pattern.rs ← 1 files, 181 lines | 8 | 2,073 | no |
| 7. crates/globset/src/lib.rs where the program starts crates/globset/src/glob.rs ← 1 files, 1,936 lines crates/globset/src/pathutil.rs ← 1 files, 141 lines crates/globset/src/serde_impl.rs ← 1 files, 128 lines | 5 | 3,697 | yes |
| 8. crates/pcre2/src/lib.rs where the program starts crates/pcre2/src/matcher.rs ← 1 files, 505 lines crates/pcre2/src/error.rs ← 1 files, 48 lines | 3 | 569 | no |
Imported by the most files: the load-bearing walls, where a change reaches furthest.
| Module | Imported by | Lines | A test reaches it |
|---|---|---|---|
| crates/cli/src/decompress.rs | 1 | 739 | yes |
| crates/cli/src/escape.rs | 1 | 159 | yes |
| crates/cli/src/hostname.rs | 1 | 86 | yes |
| crates/cli/src/human.rs | 1 | 148 | yes |
| crates/cli/src/pattern.rs | 1 | 181 | yes |
| crates/cli/src/process.rs | 1 | 316 | no |
| crates/cli/src/wtr.rs | 1 | 149 | no |
| crates/core/flags/complete/bash.rs | 1 | 107 | no |
| crates/core/flags/complete/fish.rs | 1 | 75 | no |
| crates/core/flags/complete/mod.rs | 1 | 11 | no |
| crates/core/flags/complete/nushell.rs | 1 | 78 | no |
| crates/core/flags/complete/powershell.rs | 1 | 85 | no |
Churn multiplied by size. A big file that never changes is usually fine; a big file that changes constantly is where the bugs and the arguments live.
| File | Commits | Lines | Mostly written by | Tested |
|---|---|---|---|---|
| crates/core/flags/defs.rs | 29 | 8,153 | Author A 34% | yes |
| crates/ignore/src/walk.rs | 21 | 3,051 | Author A 29% | yes |
| crates/globset/src/lib.rs | 22 | 1,462 | Author A 18% | yes |
| crates/core/flags/hiargs.rs | 20 | 1,658 | Author A 50% | no |
| crates/ignore/src/default_types.rs | 38 | 393 | Author G 8% | yes |
| crates/ignore/src/dir.rs | 18 | 1,726 | Author A 28% | yes |
| crates/globset/src/glob.rs | 14 | 1,936 | Author X 7% | yes |
| crates/printer/src/standard.rs | 9 | 4,016 | Author Q 11% | yes |
| crates/ignore/src/gitignore.rs | 17 | 1,091 | Author A 29% | yes |
| crates/searcher/src/searcher/mod.rs | 9 | 1,155 | Author A 33% | yes |
| crates/searcher/src/searcher/glue.rs | 7 | 1,641 | Author A 57% | yes |
| crates/core/main.rs | 11 | 496 | Author A 45% | no |
The busiest test file is tests/regression.rs (31 commits) - kept out of the table above so the code that ships comes first.
Active in the last 90 days: Author A (17), Author C (8), Author D (5), Author H (3), Author I (2), Author J (2)
History read: 400 commits, 2 years ago to 10 days ago. Top committer overall: Author A 49%.
50 of 79 shipped modules are reachable from a test file by import (63%).
9 further files under examples, docs, scripts or benchmarks are not test-reachable either. They are counted apart from the number above, because demo code dragging a healthy repository down tells you nothing.
Reachable means a test imports it, directly or through another module. It is the floor, not coverage: a module can be reachable and still have none of its behaviour exercised. The modules below are the other case - nothing a test loads can even see them, so a green suite says nothing about them.
Nothing unreachable found.
| File | Count |
|---|---|
| CHANGELOG.md | 473 |
| .github/ISSUE_TEMPLATE/bug_report.yml | 3 |
| README.md | 3 |
| crates/printer/src/standard.rs | 3 |
| FAQ.md | 2 |
| crates/matcher/src/interpolate.rs | 2 |
Read from Cargo.toml, cli/Cargo.toml, globset/Cargo.toml, grep/Cargo.toml, ignore/Cargo.toml, matcher/Cargo.toml, pcre2/Cargo.toml, printer/Cargo.toml, regex/Cargo.toml, searcher/Cargo.toml, fuzz/Cargo.toml.
Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.
tikv-jemallocator lexopt textwrap libc arbitrary glob grep-cli grep-pcre2 grep-printer same-file crossbeam-channel regex encoding-rs libfuzzer-sys
No committed credentials matched the patterns checked.
Patterns covered: AWS keys, private key blocks, GitHub, Slack, Stripe, Google, OpenAI and Anthropic keys, JSON web tokens, and passwords assigned in code. A secret in a format not listed here would not be found, and this does not read the git history.