Commit graph

12 commits

Author SHA1 Message Date
Tuncer Ayaz
556f47579d No need to re-specify default escript_shebang in rebar.config 2012-07-30 20:24:50 +02:00
Tuncer Ayaz
c91250d2df Use [{File,Bin}, ...] in escriptize zip:create 2012-06-17 23:03:29 +02:00
Tuncer Ayaz
83879c22e1 Add missing escriptize comments 2012-06-17 22:57:33 +02:00
Tuncer Ayaz
1e980859e2 Extend escriptize and reuse in bootstrap 2012-06-14 23:46:55 +02:00
Amit Kapoor
6ada1c24c7 Update filter list for custom xref query
Rebar has support for optional compilers built-in. These compilers might
not be installed causing xref to return errors for the undefined external
function calls query. The updated filter list will catch this error and
act as a nop if they are installed.
2012-04-04 20:43:25 +02:00
Amit Kapoor
0191806f92 Add support for custom xref queries
The custom queries are configured in rebar.config via the tuple
{xref_queries, [{query(), query_result()},...]}.  The implementation
passes the query() string to xref:q and compares the return value with
query_result(). It will result in an error if they do not match.

The following configuration, for example, is the same as running the
xref check undefined_function_calls. It additionally filters
ejabberd_logger:*_msg/4 from the result as these functions are generated
on execution by ejabberd and not available at compile time.

{xref_queries, [{"(XC - UC) || (XU - X - B -
                 (\"ejabberd_logger\":\".*_msg\"/\"4\"))",[]}]}.

This patch also modifies the build process of this package by running a
custom query instead of doing a diff against a static xref_warning file.
2012-04-02 19:14:37 +02:00
Piotr Usewicz
df4e836c4e Add file local variables where appropriate 2011-04-15 17:22:49 +02:00
Tuncer Ayaz
27de53125e Use warnings_as_errors instead of fail_on_warning 2011-04-07 21:56:53 +02:00
Tuncer Ayaz
be209f24ff Make debug_info default
Add no_debug_info option.
Remove debug_info=1 option.
2011-03-30 11:19:37 +02:00
Dave Smith
f36e044e5d Enable xref checks on rebar 2010-04-09 09:25:08 -06:00
Dave Smith
7cf35a88ba Enable fail_on_warning by default 2009-12-14 09:27:58 -05:00
Jon Meredith
8e91e1014e Connected up symlinking the list of progs in rebar.config/app_bin
to the OTP bin dir.
2009-11-30 12:02:09 -07:00