IF Commons GitHub

dropped

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-kanon-checker FR-013, 0001-kanon-checker FR-005

The check that nothing is silently dropped (commons 0033-kanon FR-005): each annotation of an element of the Governance layer of a model (each of its properties) must end in one of three ways, said by a disposition of the model: expressed (a lower element enforces it), carried (a lower element passes it on as data) or unexpressed (named, with its reason). An annotation with none, or whose disposition names a target that is no element of the model, or an unexpressed one with no reason, is a finding kanon/dropped. Where the model has instances (dialects) the rule holds for each instance (0033-kanon FR-022): an annotation accounted for one dialect and not another is a finding naming the other.

Pure: it reads the model and returns findings in the form of the import check, so that one baseline holds both. The top layer is the first of the model's layers.

import { droppedFindings, type LayeredModel } from "@intellectual-frontiers/kanon";
declare const model: LayeredModel;
droppedFindings(model).map((f) => f.key);

Source: commons/kanon/src/dropped.ts

1 of 1 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

droppedFindingsfunction
function droppedFindings(model: LayeredModel): readonly Finding[]

Every annotation of Governance that the model does not account for, for each instance it has, one finding each, in the order of the elements, of their annotations and of the instances.

Imported by 21 tests of the run (21 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.