Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an equivalent to HLint for Erlang?

HLint is a Haskell lint tool for making code more idiomatic. Is there something like it for Erlang?

like image 706
mcandre Avatar asked Aug 01 '11 01:08

mcandre


3 Answers

There is a tool called "Tidier": http://tidier.softlab.ntua.gr/mediawiki/index.php/Main_Page, which is based on a simpler module called erl_tidy which is part of the syntax_tools library: http://www.erlang.org/doc/man/erl_tidy.html.

Tidier is used via a web interface, letting you choose interactively which changes you want it to perform. It can do some amazing things, and is a great tool for learning how to write idiomatic Erlang.

like image 150
RichardC Avatar answered Nov 07 '22 02:11

RichardC


Yes there is. Its called erl_lint

like image 44
arun_suresh Avatar answered Nov 07 '22 00:11

arun_suresh


There's now also elvis. Although it is not specifically a linter, it does check that Erlang code conforms to certain rules which can be configured.

like image 1
juan.facorro Avatar answered Nov 07 '22 01:11

juan.facorro