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

repo/lockfile-committed/php

Dependency lockfile is committed

Implements repo/lockfile-committed for php.

Severityerror
Tiers1, 2
Stacksphp
Scopeeach
Kindexpr
Sourcelibrary v0.3.1
Selected byfleetlint-recommended@v0.3.1

Requirement

composer.lock is tracked when composer.json requires packages.

Why

Builds are reproducible only when dependency versions are pinned in git.

Check

"composer.lock" in tracked() || !text("composer.json").contains("\"require")

Fix

Run composer update --lock (or composer install) and commit composer.lock.

Agent instruction: Run the package manager to produce the lockfile, remove any .gitignore entry for it, and commit it.

See: https://fleetlint.org/baseline/#dependencies, https://fleetlint.org/stacks/#php


Generated by fleetlint docs from catalog v0.3.1.