Is there an equivalent to HLint for Erlang?
Asked Answered
M

3

9

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

Murk answered 1/8, 2011 at 1:54 Comment(0)
A
14

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.

Alixaliza answered 1/8, 2011 at 7:32 Comment(1)
The link to Tidier is dead.Biting
R
1

Yes there is. Its called erl_lint

Ramsgate answered 1/8, 2011 at 3:12 Comment(1)
erl_lint is just that part of the compiler which checks for errors and warnings in the Erlang code before it gets compiled down to a more low level representation. It won't tell you how to rewrite your code to make it better.Alixaliza
K
1

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.

Kigali answered 13/3, 2015 at 19:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.