gunk-dev/the-valley

floor-format.cue

source07d67d385df1main's published tip history
1.2 KiB
1// One document of an instance floor: the formatting half. It is a sample,
2// not an installed file โ€” the real floor directory lives in the instance
3// repository, which for the gunk-dev instance is qinling (dcr-f41f718).
4//
5// The floor is a directory, not a file. This document and its sibling
6// floor-references.cue both contribute to the `prose` class, and the
7// composition is unification, so the split carries no meaning of its own.
8//
9// Validate the whole arrangement โ€” floor directory, template and project
10// document โ€” with:
11// cue vet -c schema/verification.cue \
12// examples/policy/instance/*.cue examples/policy/project/*.cue
13package verification
14
15floor: {
16 checks: "prose-format": {
17 runner: "nix"
18 attribute: "prose-format"
19 }
20
21 // Every markdown file in every project in the group is formatted, and
22 // no project can decide otherwise: both the coverage and the
23 // requirement are concrete.
24 classes: prose: {
25 paths: "**/*.md": true
26 requires: "prose-format": true
27 }
28
29 // A path no class covers is the policy falling behind the tree. The
30 // floor answers that case for the whole group rather than leaving each
31 // project to remember.
32 unclassified: "prose-format": true
33}