Aller au contenu

list_code_scan_findings

List the HARDCODED, non-internationalized strings a sonenta scan run found in the project's source code. Each finding = {uuid, file, line, column, string, status, suggested_namespace, treated_key, treated_at, first_seen_scan_id, last_seen_scan_id}. status is the whole point: new = still hardcoded in the code and nobody has dealt with it (this is your work queue); treated = somebody already extracted it into a real key, which is recorded in treated_key; gone = the string is no longer in the code, so it was removed or already replaced, so do NOT act on gone, it is history, not a task. Filter with status=new to get exactly what remains to internationalize. Paginated (limit/offset, total in the envelope). READ-ONLY, 0 credits. The usual loop: list findings with status=new, create the key for one (create_key + propose_translation), edit the source so it renders through the i18n runtime, then call mark_code_scan_finding_treated with the key you created.

NomTypeDescription
project_uuidstringoptionnelProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
statusstringoptionnelFilter by state. new = still hardcoded and untreated (the work queue). treated = already extracted into a key. gone = absent from the last scan, keep for history. Omit for all three. (new, treated, gone)
limitintegeroptionnelPage size (default 100).
offsetintegeroptionnelRows to skip (default 0).
{
"tool": "list_code_scan_findings",
"arguments": {}
}