Skip to content
Browse files

Increase scope of code path for erlang syntax checker

  • Loading branch information...
1 parent 6192cdb commit 5d46bbc3dc39cbc40ec9833f6d7325018288f5cf @xenolinguist committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 syntax_checkers/erlang_check_file.erl
View
5 syntax_checkers/erlang_check_file.erl
@@ -2,7 +2,10 @@
-export([main/1]).
main([FileName]) ->
- code:add_pathsa(filelib:wildcard(filename:absname(filename:join([filename:dirname(FileName), "..", "..", "*", "ebin"])))),
+ AllProjectEbinRelativePattern = filename:join([filename:dirname(FileName), "..", "..", "..", "*", "*", "ebin"]),
+ AllProjectEbinAbsolutePattern = filename:absname(AllProjectEbinRelativePattern),
+ AllProjectEbinPaths = filelib:wildcard(AllProjectEbinAbsolutePattern),
+ code:add_pathsa(AllProjectEbinPaths),
compile:file(FileName, [warn_obsolete_guard,
warn_unused_import,

0 comments on commit 5d46bbc

Please sign in to comment.
Something went wrong with that request. Please try again.