IF Commons GitHub

governance/lint

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-governance FR-009

Lint (commons data 0003-governance FR-009): the findings of a domain against the vocabularies a project uses, as data. The core rules come first: an element with no definition, and an annotation of a kind that no vocabulary given has. Then each vocabulary's rules, in the order given.

Source: commons/data/governance/lint.ts

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

coreRulesfunctionno test imports it
function coreRules(vocabularies: readonly Vocabulary[]): readonly LintRule[]

The core rules: they depend on the vocabularies given only for the kinds they know.

lintfunction
function lint(d: Domain, vocabularies?: readonly Vocabulary[]): readonly Finding[]

The findings of a domain.

ParameterWhat it is
dthe domain
vocabulariesthe vocabularies the project uses, in order

Returns: the findings of the core rules, then of each vocabulary's, in the order of the rules

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

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