Repo X-Ray · 05 December 2026, 05:37 · read in 0.3s · nothing was executed
/srv/xela/workspace/.xray-oss/cobra
| Language | Files | Lines | |
|---|---|---|---|
| Go | 36 | 16,765 |
Imported by the most files: the load-bearing walls, where a change reaches furthest.
| Module | Imported by | Lines | A test reaches it |
|---|---|---|---|
| active_help.go | 12 | 60 | yes |
| active_help_test.go | 12 | 400 | no |
| args.go | 12 | 144 | yes |
| args_test.go | 12 | 578 | no |
| bash_completions.go | 12 | 709 | yes |
| bash_completionsV2.go | 12 | 484 | yes |
| bash_completionsV2_test.go | 12 | 33 | no |
| bash_completions_test.go | 12 | 289 | no |
| cobra.go | 12 | 246 | yes |
| command.go | 12 | 2,072 | yes |
| command_notwin.go | 12 | 20 | yes |
| command_test.go | 12 | 2,954 | 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 |
|---|---|---|---|---|
| command.go | 71 | 2,072 | Author A 18% | yes |
| completions.go | 47 | 1,024 | Author A 30% | yes |
| bash_completions.go | 27 | 709 | Author A 33% | yes |
| bash_completionsV2.go | 22 | 484 | Author D 50% | yes |
| powershell_completions.go | 19 | 350 | Author J 21% | yes |
| fish_completions.go | 15 | 292 | Author A 40% | yes |
| zsh_completions.go | 14 | 308 | Author A 29% | yes |
| cobra.go | 12 | 246 | Author C 25% | yes |
| doc/man_docs.go | 10 | 246 | Author C 30% | yes |
| flag_groups.go | 8 | 290 | Author C 25% | yes |
| args.go | 11 | 144 | Author C 27% | yes |
| doc/md_docs.go | 10 | 158 | Author C 20% | yes |
The busiest test file is command_test.go (43 commits) - kept out of the table above so the code that ships comes first.
History read: 404 commits, 7 years ago to 4 months ago. Top committer overall: Author A 12%.
14 of 14 shipped modules are reachable from a test file by import (100%).
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.
Every source module is reachable from the tests.
Nothing unreachable found.
| File | Count |
|---|---|
| CONDUCT.md | 3 |
| cobra.go | 3 |
| completions_test.go | 2 |
| CONTRIBUTING.md | 1 |
| command.go | 1 |
| command_test.go | 1 |
Read from go.mod.
Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.
github.com/cpuguy83/go-md2man/v2 go.yaml.in/yaml/v3 (
Nothing in the shipped code imports these, so an install will not break - but a fresh contributor running the tests or building the docs will hit them.
github.com/cpuguy83/go-md2man go.yaml.in
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.