Archeometer.Schema.Function (Archeometer v0.5.0)
Represents an Elixir function. Holds the relevant schema data that will be used in the project analysis.
This schema has the following fields:
name
is the name of the functioncc
represents the cyclomatic complexity.num_lines
is the number of lines in the function definition.num_args
is the number of arguments the function receives.arg_names
is a comma separated list with the name of the parameters the function receives.type
can be eitherdef
ordefp
depending on the function declaration.coverage
is a number between 0 and 1 representing the percentage of tested lines of code. It is pulled directly from Erlang'scode
module, so it might not be very accurate.module
is a referece toArcheometer.Schema.Module
. It is the module where the function was declared.