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

slop/variant-names

No names with version or quality suffixes

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

Requirement

No declaration is named as a variant of another (parseV2, handlerNew, ClientImproved, syncOld).

Why

It means two implementations exist and callers must know which one is right.

Check

For each item in:

codegrep("code", r'\b(func|fun|def|fn|function|class|struct|interface|type|void|const|final|let|var|val)\s+\w+?(V[2-9]|_v[2-9]|Improved|Enhanced|Old|New|Fixed|Temp|Simple|Robust|Better)\b')
false

Fix

Change the original and update its callers; delete the other.

Agent instruction: Report the pair; merge into the original name only when the callers and tests make the intended behaviour clear.

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


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