wiki coverage
list the source files no page cites
wiki coverage lists every source file that no page's references cite, and every citation of a file that
does not exist, then the totals, and writes nothing.[1] It counts only the files coverage.include
names in wiki.toml, less those coverage.exclude names, as wiki.toml describes.
Usage
It takes only the options every command shares.[2]
wiki coverage [-h] [--root ROOT] [--wiki WIKI]
wiki coverage
Output
A source file counts as cited when a page's reference names it in backticks; a reference inside a code
block, or one naming a folder, covers nothing, and a line number after a file, as in src/app.py:12, is
ignored.[3] A citation is reported as naming a file that does not
exist only when it names a file with an extension under a folder the project has, so an action, a media
type or a generated folder is never reported.[3] On a project with one uncited file and one citation
of a file that does not exist:[1]
wiki: src/builder/__init__.py is cited by no page
wiki: commands/sync.md cites src/builder/sync.py, which does not exist
wiki: 20 of 21 source files cited; 1 citation names a file that does not exist
Exit codes
| Code | Condition | Message |
|---|---|---|
0 |
the report is printed, whatever it finds[4] | wiki: 20 of 21 source files cited; 1 citation names a file that does not exist |
1 |
coverage.include matches no file, a pattern list is not a list of patterns, or a pattern leads outside the project[4] |
wiki: wiki.toml: coverage.include matches no files in /path/to/notes; name the project's source files relative to the project, such as include = ["src/**/*.py"] |
2 |
wiki.toml has no [coverage] table[4] |
wiki: wiki.toml has no [coverage] table; add one naming the source files to count, such as [coverage] include = ["src/**/*.py"] |
2 |
there is no wiki where it was pointed[4] | wiki: no wiki at nowhere |
2 |
an option it does not know[4] | wiki: error: unrecognized arguments: --unknown |