This module is used to check Erlang code for illegal syntax and other bugs. It also warns against coding practices which are not recommended.
The errors detected include:
Warnings include:
Some of the warnings are optional, and can be turned on by giving the appropriate option, described below.
The functions in this module are invoked automatically by the Erlang compiler and there is no reason to invoke these functions separately unless you have written your own Erlang compiler.
This function checks all the forms in a module for errors. It returns:
There were no errors in the module.
There were errors in the module.
Since this module is of interest only to the maintainers of
the compiler, and to avoid having the same description in
two places to avoid the usual maintenance nightmare, the
elements of
The
[{FileName2,[ErrorInfo]}]
The errors and warnings are listed in the order in which they are encountered in the forms. This means that the errors from one file may be split into different entries in the list of errors.
This function tests if
Takes an
The
{ErrorLine, Module, ErrorDescriptor}
A string which describes the error is obtained with the following call:
apply(Module, format_error, ErrorDescriptor)