Configuration
The keys of docket-ship.cfg, their defaults and what each one changes.
docket-ship.cfg sits at the root of the project and marks it as a
docket-ship project. It uses the same syntax as doc headers: one
key: value per line, lists as [a, b], and # for comments. Every key is
optional; an empty file uses the defaults below.
This is what docket-ship init writes:
# docket-ship configuration - see docs/CONVENTIONS.md
docs: docs
code: [] # folders to look in for named paths and symbols
symbols: true
# people: [anna, ben] # who can be assigned tickets; leave out if you work alone
docs
The folder holding the docs, relative to the project root. Default: docs.
It must be inside the project. A path that leaves it, such as ../other, is
an error, and the default docs folder is used instead.
code
The folders that hold your code, as a list. Default: [].
With code set, the checker also:
- warns when a spec names a file path in backticks that doesn't exist;
- warns when a spec names a function or type in backticks that appears in no
code file (see
symbols); - reads code comments and reports a decision or ticket id, or a
docs/path, that doesn't exist, and warns when a comment cites a superseded decision.
code: [src, scripts]
Folders outside the project are an error and aren't read.
extensions
Which files count as code, by extension. Default: ts, tsx, js, jsx,
mjs, py, gd, cs, go, rs, java, kt, swift, rb, php, c,
h, cpp, hpp, tscn and json.
extensions: [ts, tsx, sql]
symbols
Whether the checker looks for backticked names (camelCase, PascalCase or
snake_case) from specs in the code. Default: true. Set it to false if
your specs name many things that aren't code.
history_phrases
Phrases that signal status or history in a spec, which the checker warns
about. Default: not yet, not built, previously, used to be,
we decided, for now, todo, tbd, later stage and first draft.
Set your own list to replace the default:
history_phrases: [not yet, previously, legacy, deprecated]
A line that has to mention history can end with
<!-- docket-ship:ignore -->.
people
The names that can be assigned tickets. Default: []. See
working as a team.
people: [anna, ben]