syntastic/syntax_checkers/erlang_check_file.erl

13 lines
440 B
Erlang
Raw Normal View History

2010-11-02 04:53:52 -04:00
#!/usr/bin/env escript
-export([main/1]).
main([FileName]) ->
compile:file(FileName, [warn_obsolete_guard,
warn_unused_import,
warn_shadow_vars,
warn_export_vars,
strong_validation,
report,
{i, filename:dirname(FileName) ++ "/../include"}
]).