erl_lint

erl_lint

Module

erl_lint

Module summary

The Erlang Code Linter

Description

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:

  • redefined and undefined functions
  • unbound and unsafe variables
  • illegal record usage.

Warnings include:

  • unused functions and imports
  • unused variables
  • variables imported into matches
  • variables exported from if/case/receive
  • variables shadowed in lambdas and list comprehensions.

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