summaryrefslogtreecommitdiff
path: root/src/rebar_xref.erl
Commit message (Collapse)AuthorAgeFilesLines
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-1/+1
|
* Do not use application:set_envTuncer Ayaz2012-07-231-1/+1
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-1/+1
|
* Use lists:member/2 to check xref resultsAmit Kapoor2012-04-021-4/+3
|
* Add support for custom xref queriesAmit Kapoor2012-04-021-1/+18
| | | | | | | | | | | | | | | | | | 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.
* Universally support apps=/skip_apps=Tuncer Ayaz2011-12-121-11/+5
|
* Move is_skipped_app/0 to rebar_app_utilsTuncer Ayaz2011-12-121-1/+1
|
* rebar_xref: move code to proper placeTuncer Ayaz2011-12-121-4/+4
|
* Make 'rebar xref' honour the skip_app directiveTorbjorn Tornkvist2011-12-121-1/+7
| | | | | | | | | | | | It is now possible to call rebar as: rebar xref skip_app=Mod1,Mod2,... This makes it easy to skip running xref on (e.g) imported dependencies in your application. The function rebar_utils:is_skipped_app/0 is added so that other rebar commands may use it.
* Work around functions not found in sourceFabian Linzberger2011-10-201-5/+11
| | | | | | | | | | | | For parameterized modules, the beam code will have a compiler generated new/1 and instance/1 function. If while checking the beam, xref detects one of those is unused, the rebars xref wrapper will try to find the location of the definition of that function in the source code for the module (to give a more specific warning to the user). Since the function was generated by the compiler it does not actually exist in the source, and rebar crashes at that stage. This patch works around that issue.
* Abort if xref emits warningsShunichi Shinohara2011-05-251-21/+26
|
* Fix bug: xref should be stopped after being runJordi Chacon2011-03-261-0/+3
| | | | Xref not being stopped caused a crash in subsequent xref runs.
* Clean up codeTuncer Ayaz2011-02-061-16/+27
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Simplify and cleanup rebar_xrefTuncer Ayaz2011-01-131-21/+9
|
* Fix typosTuncer Ayaz2011-01-131-1/+1
|
* Fix issues found by dialyzerTuncer Ayaz2010-10-101-1/+1
|
* Dialyzer related cleanupsKostis Sagonas2010-10-101-12/+12
|
* Fix compiler warningsKlas Johansson2010-06-191-4/+1
|
* Make sure to add ebin/ to the code path as well so that xref can properly ↵Dave Smith2010-04-231-2/+9
| | | | determine source/line of code.
* Add stub for xref support; not yet doneDave Smith2010-04-091-0/+184