Skip to content

done

The done action marks issues as fixed or skipped. This updates Sheriff’s database and advances your progress.

{
"action": "done",
"fps": ["88d32cab35478753", "ab1c2d3e12345678"],
"status": "fixed"
}
ParameterTypeRequiredDescription
fpsarrayYesArray of fingerprints to mark
statusstringYes"fixed" or "skip" (the server also accepts aliases "fix"/"f", "skipped"/"s", but schema-validating clients may only accept the canonical values)
{
"marked": 2,
"prog": {"total": 136, "fixed": 115, "skip": 2, "rem": 19}
}
FieldDescription
markedNumber of issues marked
progUpdated progress summary (total, fixed, skip, rem)

Use when you’ve resolved the issue in the code:

{"action": "done", "fps": ["88d32cab35478753"], "status": "fixed"}

Use for false positives or issues you choose not to fix:

{"action": "done", "fps": ["ab1c2d3e12345678"], "status": "skip"}
{
"action": "done",
"fps": ["88d32cab35478753"],
"status": "fixed"
}
{
"action": "done",
"fps": ["88d32cab35478753", "ab1c2d3e12345678", "f9e8d7c6a1b2c3d4"],
"status": "fixed"
}
{
"action": "done",
"fps": ["xyz1234567890abc"],
"status": "skip"
}

Fix all issues in a file before calling done:

  1. next → Get 3 issues in Service.java
  2. Edit Service.java to fix all 3
  3. done with all 3 fingerprints

Always use the full fingerprint string returned by the next action. Sheriff performs exact matching on fingerprints:

{"fps": ["88d32cab35478753"]} ✓ Full fingerprint
{"fps": ["88d32cab"]} ✗ Truncated — won't match
Error CodeCauseSolution
SARIF_NOT_LOADEDNo SARIF file has been loadedCall load first
INVALID_STATUSStatus is not fixed or skipUse "fixed" or "skip"
INVALID_FINGERPRINTFingerprints are missing or none existProvide valid fingerprints from next response
DB_ERRORDatabase error occurredCheck .sheriff/ directory permissions

Made a mistake? Use the reopen action to undo:

{"action": "reopen", "fps": ["88d32cab35478753"]}