category
Core predicates for computing source code metrics.
Ebrahim Azarisooreh and Paulo Moura
0.8
2018/2/18
static
(no dependencies on other entities)
Scans an entity and prints its metric score.
static
entity(Entity)
entity(+term) – zero_or_one
Prints metric scores for all the entities defined in a loaded source file.
static
file(File)
file(+atom) – zero_or_one
Scans a directory and prints metric scores for all entities defined in its loaded source files.
static
directory(Directory)
directory(+atom) – one
Recursive version of the directory/1 predicate.
static
rdirectory(Directory)
rdirectory(+atom) – one
Prints metrics scores for all loaded entities from a given library.
static
library(Library)
library(+atom) – one
Recursive version of the library/1 predicate.
static
rlibrary(Library)
rlibrary(+atom) – one
Scans all loaded entities and prints their metric scores.
static
all – one
Score is a term that represents the metric score associated with a loaded entity. Fails if the metric does not apply.
static
entity_score(Entity,Score)
Score is a term that represents the metric score associated with a loaded library source files. Fails if the metric does not apply.
static
library_score(Library,Score)
library_score(@atom,-ground) – zero_or_one
Score is a term that represents the metric score associated with loaded source files from a library and its sub-libraries. Fails if the metric does not apply.
static
rlibrary_score(Library,Score)
rlibrary_score(@atom,-ground) – zero_or_one
Score is a term that represents the metric score associated with a loaded source file. Fails if the metric does not apply.
static
file_score(File,Score)
file_score(@atom,-ground) – zero_or_one
Score is a term that represents the metric score associated with loaded source files from a directory. Fails if the metric does not apply.
static
directory_score(Directory,Score)
directory_score(@atom,-ground) – zero_or_one
Score is a term that represents the metric score associated with loaded source files from a directory and its sub-directories. Fails if the metric does not apply.
static
rdirectory_score(Directory,Score)
rdirectory_score(@atom,-ground) – zero_or_one
Score is a term that represents the metric score associated with all loaded source files. Fails if the metric does not apply.
static
all_score(Score)
all_score(-ground) – zero_or_one
Pretty prints the entity score.
static
entity_score(Entity,Score)
Processes an entity of the given kind.
static
process_entity(Kind,Entity)
process_entity(+atom,@entity_identifier) – one
Processes a source file.
static
process_file(Path)
process_file(+atom) – one
Processes a directory of source files.
static
process_directory(Path)
process_directory(+atom) – one
Recursively process a directory of source files.
static
process_rdirectory(Path)
process_rdirectory(+atom) – one
Recursively process a library of source files.
static
process_rlibrary(Path)
process_rlibrary(+atom) – one
Processes all loaded source code.
static
process_all – one
Enumerates, by backtracking, all directory sub-directories containing loaded files.
static
sub_directory(Directory,SubDirectory)
sub_directory(+atom,-atom) – one
Enumerates, by backtracking, all library sub-library paths.
static
sub_library(Library,SubLibraryPath)
sub_library(+atom,-atom) – one
(none)