summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-10-24 12:12:00 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-10-24 12:12:00 +0100
commit765823e378b926f36bba15a101f3b9d290fd1cef (patch)
tree30cb7a14bc444a06245180150f8e037869659850
parentf3ab76656b09e6c34c6ebaf1c1f3b1b48aee9b1f (diff)
downloadrabbitmq-server-765823e378b926f36bba15a101f3b9d290fd1cef.tar.gz
Treat calls to gen_server:call/2 and gen_server2:call/2 as errors.
-rwxr-xr-xcheck_xref8
1 files changed, 8 insertions, 0 deletions
diff --git a/check_xref b/check_xref
index 24307fdb..d241351f 100755
--- a/check_xref
+++ b/check_xref
@@ -136,6 +136,14 @@ checks() ->
error, filters()},
{"(Lin) (L - LU)", "has unused local function(s)",
error, filters()},
+ %% E - all edges (i.e. function calls)
+ %% | - calling from
+ %% || - calling to
+ %% "RE1" : "RE2" / "RE3" - regex MFA
+ {"(E | \"(rabbit|amqp).*\" : \".*\" / \".*\" || "
+ "\"gen_server2?\" : \"call\" / \"2\")",
+ "5 sec timeout in",
+ error, filters()},
{"(Lin) (LU * (X - XU))",
"has exported function(s) only used locally",
warning, filters()},