Module pest

Primitive Erlang Security Tool (PEST)

.

Version: 0.1.0 Oct 29 2016 18:49:38 ------------------------------------------------------------------------

Description

Primitive Erlang Security Tool (PEST)

Data Types

checks()

checks() = [{severity(), [problem(), ...], message()}, ...]

file_path()

file_path() = string()

function_name()

function_name() = atom()

line()

line() = erl_anno:line()

message()

message() = nonempty_string()

options()

options() = [consistency_checks | {checks, checks()} | {severity_min, severity()}]

problem()

problem() = {Module::module(), Function::function_name(), Arity::arity()} | module()

severity()

severity() = 0..100

0 == low, 100 == high

warning()

warning() = {severity(), message(), #{problem() := [line(), ...]}}

warnings()

warnings() = [warning(), ...]

Function Index

analyze/1

Analyze a file.

.
analyze/2

Analyze a file with options.

.
checks/0

Security checks.

.
main/1

Escript Main Function.

.

Function Details

analyze/1

analyze(FilePath::file_path()) -> ok | {warning, warnings()} | {error, any()}

Analyze a file.

analyze/2

analyze(FilePath::file_path(), Options::options()) -> ok | {warning, warnings()} | {error, any()}

Analyze a file with options.

checks/0

checks() -> checks()

Security checks.

main/1

main(Arguments::[string()]) -> no_return()

Escript Main Function.


Generated by EDoc, Oct 29 2016, 18:49:39.