docs: README examples no longer match v0.21.0's output
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 77/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- documentation
Research direction
Start with the cited sections in README.md: the examples around lines 1472–1525, the -V=full description, malformed-directive table, and line-number examples. Run the documented commands at commit 510cad4 and compare their output with each README block. Update stale or incomplete examples and statements, choose one line-number convention, and add a golden test for the survey and inspect blocks if practical; done when the documented output and claims match the commands.
Written by the indexing model from the issue text.
Description
These were checked by running the commands at 510cad4.
Example output
-
"Silencing an unused report" (
README.md:591-594): it runs plaindeclscope ./..., which is strict by default, but shows the loose wordingnothing it reaches takes a scope. v0.21.0 prints…on B: it already has shared scope, and the same forT.F. -
Survey and inspect samples (
README.md:1472-1525): several numbers are out of date, and rows are silently left out.Item README v0.21.0 Survey declared20 29 markdown → cellmutualempty yesmarkdown → cellreached7 of 107 of 18markdown → sink5 of 17, 28 uses5 of 18, 25 usesgolden → (core)4 of 784 of 79format → json2 of 1052 of 107Open declarations 114 109 The survey sample leaves out the
Packages — qualifytable. The inspect sample drops rows such asjson → summaryfrom the middle of the table, and cuts the "Declarations crossed" sentence short.
Statements
-
-V=full(README.md:227) says "A build from a checkout answersdevel".go buildin a checkout answers a VCS version. Onlygo run, or a build with-buildvcs=false, answersdevel. -
The malformed-directive table (
README.md:628-630) gives one directive's message for another:Input README Actual //declscope:coretwiceduplicate declscope:namespace directiveduplicate declscope:core directiveTwo identical ignores duplicate declscope:shared directiveduplicate declscope:ignore directiveA stray //declscope:coredeclscope:namespace must appear…declscope:core must appear… -
Line numbers are counted two ways. Most examples treat the
// file.gocaption as outside the file (lines 114-115, 770-778, 1066 and 1159). The strict-fix example (534-537) and theaccount.goexample (1100) count it as line 1.
Suggested fix
- Regenerate the samples, or mark them as excerpts.
- Use
<name>in the message table. - Pick one convention for line numbers.
- A golden test over the survey and inspect README blocks would keep them from drifting again.
- Dominant language
- Go
- Stars
- 42
- Forks
- 1
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 94
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mpyw/declscope
-
bug P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mpyw/declscope#262 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation P3
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
Similar issues
-
🕷️ bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sysadminsmedia/homebox#1805 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
router-for-me/CLIProxyAPI#6851 ·
Maintainers usually reply within 1 day
-
usage: a custom provider's balance meters ("…%" in the balance path) ignore the Left/Used switchOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[bug]: docs: Update webhook delete examples to use the correct flag (--webhook-id)Possibly taken @MuhammadHassan968 claimed this today. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 84/100
goharbor/harbor-cli#1127 ·
Maintainers usually reply within 12 days