basho/rebar — pull request #198 by xcurry (2012-03-07 19:39:56+00:00)
Title: New feature to rebar_xref to allow execution of custom queries.

Instead of creating text diff files to run against result of xref analyses, we thought it would be useful to run custom queries which allows a more powerful query string to be executed. This would be in addition to the undefined_functions and unused_export functions rebar_xref already supports.

This feature can be turned on by adding the tuple ```{xref_queries, [{string(),expected_result()},...]}``` to rebar.config. An example:

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