Variable: TOLERABLE_CODES
constTOLERABLE_CODES:ReadonlySet<AnyAstmWarningCode>
The only warning codes a profile may list in its tolerate set: benign
structural or syntactic vendor noise that cannot alter, drop, or fabricate an
extracted value, and whose reported condition nothing else in this package
reads: not to decide where one message ends and the next begins, and not to
decide what kind of message it is. Frozen so it cannot be mutated at runtime to
smuggle a code in. Adding to this set is a deliberate, reviewable act, and an
addition has to satisfy both halves of that test, not just the first.
ASTM_RECORD_UNKNOWN_TYPE is not on this list, and used to be. An
unrecognized record type may be a header the reader did not recognize as one, in
which case two messages have been read as one, or a Q it did not recognize, in
which case the message kind is no longer knowable. Tolerating it can quiet the
only report either happened.
ASTM_RECORD_FIELDS_UNSEPARATED is not on this list either, and never was. It
reports a record the delimiters in force could not split, so every modeled field
of that record is missing: it fails the first half of the test outright.
Example
import { TOLERABLE_CODES } from "@cosyte/astm";
TOLERABLE_CODES.has("ASTM_UNKNOWN_ESCAPE_SEQUENCE"); // true
TOLERABLE_CODES.has("ASTM_RECORD_UNKNOWN_TYPE"); // false
TOLERABLE_CODES.has("ASTM_FRAME_BAD_CHECKSUM"); // false