Преглед изворни кода

build(rlog): Add xref check for forbidden mnesia APIs

k32 пре 4 година
родитељ
комит
cc5bc4f7ca
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      rebar.config

+ 9 - 0
rebar.config

@@ -15,6 +15,15 @@
 {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
               deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
 
+%% Check for the mnesia calls forbidden by Ekka:
+{xref_queries,
+ [ {"E || \"mnesia\":\"dirty_write\"/\".*\" : Fun", []}
+ , {"E || \"mnesia\":\"dirty_delete.*\"/\".*\" : Fun", []}
+ , {"E || \"mnesia\":\"transaction\"/\".*\" : Fun", []}
+ , {"E || \"mnesia\":\"async_dirty\"/\".*\" : Fun", []}
+ , {"E || \"mnesia\":\"clear_table\"/\".*\" : Fun", []}
+ ]}.
+
 {dialyzer, [
     {warnings, [unmatched_returns, error_handling, race_conditions]},
     {plt_location, "."},