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

slop/debug-output

No debug prints outside tests

Severityinfo
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-slop@0.1.0

Requirement

Non-test code writes through the logger or the program’s output layer, not through raw print calls.

Why

Raw prints cannot be levelled, redacted or switched off, and they leak into the output of anything that embeds the code.

Check

For each item in:

codegrep("nontest", r'(^|[^.\w])print\(|\bconsole\.(log|debug|info)\(|(^|[^.\w])println!?\(|\bfmt\.Print|\bdebugPrint\(|\bdbg!\(')
false

Fix

Use the logger; for a CLI, the output stream the command was given.

Agent instruction: Replace with the project’s logger or output writer; delete prints that are debugging leftovers.

See: https://fleetlint.org/baseline/#slop


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.