Add machine-readable JSON spellcheck reports #24
Loading…
Reference in a new issue
No description provided.
Delete branch "maciek/pospell:feat/json-reports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
--report FILEand--report-root DIRto export JSON spellcheck results while preserving normal text diagnostics and spelling-result exit status. This lets CI and other tools consume findings without parsing console output.The versioned report includes catalog paths relative to the report root, file checksums, and findings grouped by PO entry with context, source strings, translation fingerprints, and unique misspelled words. Identities come from the input actually checked, so consumers can detect stale findings. Clean catalogs are included, and failed scans produce error reports; Hunspell failures now raise an error instead of silently appearing clean.
Document the schema, fingerprint calculation, and report limitations, and add regression coverage for entry identities, grouping, clean and failed scans, CLI behavior, path validation, and plural fingerprints.
Real multiprocessing/Hunspell checks also confirmed preserved text output and exit status, clean reports, and error reports for missing dictionaries.
I've used Codex with GPT-6.1-Sol and reviewed the code thoroughly.
Broader context: I would like to use this report in potodo-docs-priority, to report on spelling check errors.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.