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 that are not recommended.
The errors detected include:
- Redefined and undefined functions
- Unbound and unsafe variables
- Illegal record use
The warnings detected include:
- Unused functions and imports
- Unused variables
- Variables imported into matches
- Variables exported from
if
/case
/receive
- Variables shadowed in funs and list comprehensions
Some of the warnings are optional, and can be turned on by specifying the appropriate option, des