object

lines_metric

Computes the number of lines of code, comments, and blanks by calling cloc and parsing its report file output.

Availability:
logtalk_load(code_metrics(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-03-17
Compilation flags:
static, context_switching_calls
Remarks:
  • Entity line range: Entity scores are computed by querying entity lines(BeginLine, EndLine) and running cloc on a temporary file containing only that line range.

  • External dependency: Requires cloc to be available in PATH.

  • Entity score: Represented as the compound term lines(Code, Comments, Blanks).

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)