object
doc_metric
Entity and entity predicates documentation score.
logtalk_load(code_metrics(loader))static, context_switching_calls
Score range: Score is a integer percentage where a 100% score means that all expected documentation information is present.
Score weights: The score is split by default between 20% for the entity documentation and 80% for the entity predicates documentation, Can be customized using the predicate
entity_predicates_weights_hook/2.Score customization: The individual scores of entity
info/1pairs and predicateinfo/2pairs can be customized using theentity_info_pair_score_hook/3andpredicate_info_pair_score_hook/4predicates.
Public predicates
entity_predicates_weights_hook/2
Relative weight between entity documentation and predicates documentation in percentage. The sum of the two values must be equal to 100.
dynamic, multifileentity_predicates_weights_hook(EntityWeight,PredicatesWeight)entity_predicates_weights_hook(?integer,?integer) - zero_or_oneentity_info_score_hook/2
Maximum score for entity info/1 directives.
dynamic, multifileentity_info_score_hook(Entity,MaximumScore)entity_info_score_hook(?term,?integer) - zero_or_oneentity_info_pair_score_hook/3
Score for relevant entity info/1 directive pairs. If defined, the entity_info_score_hook/2 predicate should be defined accordingly.
dynamic, multifileentity_info_pair_score_hook(Pair,Entity,Score)entity_info_pair_score_hook(?callable,?term,?integer) - zero_or_morepredicate_mode_score_hook/3
Maximum score for predicate mode/2 directives.
dynamic, multifilepredicate_mode_score_hook(Entity,Predicate,MaximumScore)predicate_mode_score_hook(?term,?term,?integer) - zero_or_morepredicate_mode_score_hook/5
Score for a predicate mode/2 directive. If defined, the predicate_mode_score_hook/3 predicate should be defined accordingly.
dynamic, multifilepredicate_mode_score_hook(Template,Solutions,Entity,Predicate,Score)predicate_mode_score_hook(?term,?term,?term,?term,?integer) - zero_or_onepredicate_info_score_hook/3
Maximum score for predicate info/2 directives.
dynamic, multifilepredicate_info_score_hook(Entity,Predicate,MaximumScore)predicate_info_score_hook(?term,?term,?integer) - zero_or_onepredicate_info_pair_score_hook/4
Score for a predicate info/2 directive pairs. If defined, the predicate_info_score_hook/3 predicate should be defined accordingly.
dynamic, multifilepredicate_info_pair_score_hook(Pair,Entity,Predicate,Score)predicate_info_pair_score_hook(?callable,?term,?term,?integer) - zero_or_moreProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)