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

slop/huge-commits

Commits are reviewable

Severityinfo
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.5.0
Selected byfleetlint-slop@v0.5.0

Requirement

No commit in the recent history (params.commits, default 200) changes more than params.max_lines lines (default 1500). The root commit, usually an initial import, is exempt.

Why

A commit that large was not reviewed line by line, and cannot be reverted without taking unrelated changes with it.

Applies when

repo.has_git

Check

For each item in:

commits(params.commits)
item.lines <= params.max_lines || item.root

Parameters

  • commits: 200
  • max_lines: 1500

Fix

Split work into commits of one concern each.

Agent instruction: Commit one concern at a time. Do not rewrite pushed history without the user’s decision.

Sources


Generated by fleetlint docs from catalog v0.5.0.