ontoref/reflection/migrations/0004-just-convention.ncl
Jesús Pérez da083fb9ec
Some checks failed
Nickel Type Check / Nickel Type Checking (push) Has been cancelled
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled
.coder/m
2026-03-29 00:19:56 +00:00

38 lines
1.1 KiB
Plaintext

{
id = "0004",
slug = "just-convention",
description = "Justfile validates against the canonical module convention",
check = {
tag = "NuCmd",
cmd = "cd $env.ONTOREF_PROJECT_ROOT; $env.ONTOREF_ACTOR = \"agent\"; let r = (do { ^ontoref validate justfile --fmt json } | complete); if $r.exit_code != 0 { exit 1 }; let result = ($r.stdout | from json); if $result.ok { exit 0 } else { exit 1 }",
expect_exit = 0,
},
instructions = "
Run the validator to see what is missing:
ONTOREF_ACTOR=agent ontoref validate justfile
Fix each violation:
missing required modules (build, test, dev, ci):
Create justfiles/{name}.just with at minimum:
[doc(\"Show {name} help\")]
help:
@just --list
Add to root justfile:
import 'justfiles/{name}.just'
missing required recipes (default, help in root justfile):
default:
@just --list
[doc(\"Show available recipes\")]
help:
@just --list
missing required variables:
project_root := justfile_directory()
Verify:
ONTOREF_ACTOR=agent ontoref validate justfile
",
}