A documentation checker found commit references it could not resolve. Some were already listed in an inventory of historical work. We wanted the checker to keep reporting those references while preserving a failing result for unexpected broken ones.
The change added a separate historical result. After a lookup fails, the checker compares the identifier with an explicit list and checks the document's filename. A listed match stays visible in the report and does not fail the check. The rule compares filenames, so another file with the same name in a different directory qualifies too.
We tested the merged checker in a temporary Git repository. A listed reference under the configured filename produced one historical result, zero resolved references, and exit 0. In separate fixtures, the same reference under a different filename and an unlisted recognized reference under the configured filename both produced a broken result and exit 1. A file in another directory with the configured filename also received the historical label and exit 0.
These fixtures show how the checker classifies the inputs we supplied. An incomplete checkout can also leave references unresolved. A historical label records how the checker treats a listed reference. The label leaves the reason for the failed lookup open.
← All engineering articles