gunk-dev/the-valley

policy.cue

source933f202462e5main's published tip history
1.0 KiB
1// The project layer of the same sample policy, living in the project's own
2// tree rather than in the instance repository. The directory convention is
3// the same one; the authority is not. A project can only add to its own
4// directory, and adding to the instance's floor directory is a change
5// landing in the instance repository.
6package verification
7
8project: {
9 // Selecting the project type is embedding its definition. Every
10 // project in the group can read this template; only the ones that
11 // write this line are affected by it.
12 #docs
13
14 // A check the floor and the template know nothing about. A project may
15 // always add classes and checks.
16 checks: "shellcheck": {
17 runner: "nix"
18 attribute: "shellcheck"
19 }
20 classes: scripts: {
21 paths: "bin/**": true
22 requires: "shellcheck": true
23 }
24
25 // The template offered the knowledge lint as a default, so this project
26 // can decline it and vet still passes. Declining either of the floor's
27 // checks the same way does not.
28 classes: knowledge: requires: "knowledge-lint": false
29}