aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax_checkers/erlang_check_file.erl
blob: 8a85bf614141df6c603ea516b0df29b1f026f4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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"}
                        ]).