Skip to content

credibility.check

The static check of the credibility declaration of a project, without a simulation.

check_declaration

check_declaration(project)

Check the credibility declaration of a project against its adopted fits.

The declaration must be valid, its domains claim values of the metadata of the project, its settings of extensions name extensions of the project and every pairing of a ratio is claimed by one (Project.load_credibility); invalid credibility settings of the project are a problem as well. The kinds of the mappings of the current selection of the fit definitions must be the recorded kinds of the adopted fits, and the evidence must select valid data (see select, with the evidence extensions of the project), all from the fit definitions and the records, without a simulation, and select the mappings of its lock, if the project has one. A problem of the records, e.g. a record without the kinds of its mappings, two kinds of one mapping, no adopted fits or a subset adopted twice, is a problem as well, after which the kinds and the evidence are not checked.

Parameters:

Name Type Description Default
project Project

the project with a declaration and adopted fits.

required

Returns:

Type Description
list[str]

Every problem, empty if the declaration holds.

Raises:

Type Description
ValueError

if the project has no declaration.