summaryrefslogtreecommitdiff
path: root/test/rebar_xref_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* Support ignoring whole modules in xref resultsBryan Paxton2018-12-021-7/+34
| | | | | | | - Added support to rebar_prv_xref for filtering out whole module. A module may now be added to the list of xref_ignores in rebar.config or via -ignore_xref() module attribute - Added unit test for whole module filtering support to xref CT suite
* Prevent xref crashes with undef behavioursFred Hebert2017-06-131-2/+44
| | | | | | | | | When a given behaviour module does not exist, rebar3 brutally crashes. This patch makes it so instead, there is a warning output menitoning the missing behaviour, and this one is omitted from the unused function calls check. This means that unused calls will instead be shown for the module implementing a non-existing behaviour, as if no behaviour were declared in the first place.
* Fix xref compile hook on depsFred Hebert2017-06-071-2/+15
| | | | | | | | | | | If xref analysis is being run by a dependency during its compilation phase, the xref provider will try to add that deps' parents to the check job while the ebin/ directories for them do not exist. This causes a crash. This patch makes it so directories are only added if they are existing, preventing failure on any compile hook for dependencies and allowing successful compilation as a best effort.
* Add support for behaviors, and not just behavioursBrujo Benavides2016-09-281-1/+1
|
* track and cleanup code paths for different contextsTristan Sloughter2015-04-211-2/+2
|
* test end case cleanupsTristan Sloughter2015-03-051-18/+1
|
* copy project apps to deps output dir for compilationTristan Sloughter2015-02-281-2/+3
|
* profiles: combine lists of values for conflicting config optionsTristan Sloughter2015-02-241-1/+1
|
* Add xref provider for cross reference analysisKelly McLaughlin2015-02-051-0/+190
* Add a provider for the xref tool for running cross reference analysis on a project. Most of the code has been ported directly from the rebar2 rebar_xref module with some modification and cleanup to support testing. * Port over the eunit test suite from rebar2, but convert it to common_test. The testing is the same, but now the erlang term output is examined to determine if the test run is successful instead of scanning the console output for the expected strings.