fleetlint Policy for a fleet of repositories
v0.6
Getting started

taskrunner/targets

Task runner exposes the contract targets

Severityerror
Tiers1, 2
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.3.1
Selected byfleetlint-recommended@v0.3.1

Requirement

The task runner exposes fmt, lint, test, cover, audit, check and check-fast (params.required), so every tool and person can run the same commands in every repository. Any runner counts: a Makefile, a justfile, a Taskfile or package.json scripts; with Gradle the built-in check task is accepted. facts.taskrunner names the runner when a repository has more than one.

Why

Hooks, CI and automation all depend on check meaning the same thing everywhere.

Applies when

taskrunner.kind != "gradle"

Check

For each item in:

params.required
item in taskrunner.targets && !(item in taskrunner.recipes && taskrunner.recipes[item].size() > 0
     && taskrunner.recipes[item].all(l, l.matches("(?i)echo\\s+\"?todo")))

Parameters

  • required: [fmt lint test cover audit check check-fast]

Fix

Add the missing targets; fleetlint fix --apply writes a template for the runner (a Makefile unless facts.taskrunner says just or task) when there is none.

Agent instruction: Add the missing targets to the task runner following its template. Fill each with the stack’s real command, no TODO placeholders in check-fast or check.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).

See: https://fleetlint.org/baseline/#task-runner-contract


Generated by fleetlint docs from catalog v0.3.1.