summaryrefslogtreecommitdiff
path: root/src/rebar_xref.erl
Commit message (Collapse)AuthorAgeFilesLines
* rebar_xref: regression fixes and updates for a5be40c96Tuncer Ayaz2013-06-241-58/+78
| | | | | | | | - restore support for "rebar help xref" - update rebar.config.sample - update 'help xref' string - simplify new/changed functions by breaking out code or using simpler syntax where applicable
* Add standard xref checks and improved suppressionDennis Docter2013-01-301-65/+112
| | | | | | | | | | | | * Allow the following predefined analyses : undefined_function_calls, undefined_functions, locals_not_used, exports_not_used, deprecated_function_calls, deprecated_functions * Trap some possible errors in case module information is not available * ignore_xref works on all checks and can take {M,F,A} tuples. (Automatic behaviour export suppression still only works on exports_not_used)
* Add comment to explain why we're using sub_dirs by handDave Smith2012-11-051-0/+5
|
* Add all subdirs to xref library pathDaniel Luna2012-11-051-4/+7
|
* Add email address to my nameDaniel Luna2012-11-051-1/+2
|
* xref: allow multiple behaviours and ignore_xref pragmasDaniel Luna2012-09-131-12/+6
|
* Re-use rebar_utils:ebin_dir()Tuncer Ayaz2012-08-061-1/+1
|
* 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