rebar.config 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. %% -*- mode: erlang -*-
  2. %% This config file is the very basic config to compile emqx
  3. %% This allows emqx to be used as a dependency for other applications
  4. %% such as emqx module/plugin develpments and tests.
  5. %% With the help of EMQ's rebar3 fork, the config is extended
  6. %% with rebar.config.erl module. Final result is written to
  7. %% rebar.config.rendered if environment DEBUG is set.
  8. {edoc_opts, [{preprocess,true}]}.
  9. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
  10. warn_obsolete_guard,compressed, nowarn_unused_import,
  11. {d, snk_kind, msg}
  12. ]}.
  13. {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
  14. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
  15. %% Check the forbidden mnesia calls:
  16. {xref_queries,
  17. [ {"E || \"mnesia\":\"dirty_delete.*\"/\".*\" : Fun", []}
  18. , {"E || \"mnesia\":\"transaction\"/\".*\" : Fun", []}
  19. , {"E || \"mnesia\":\"async_dirty\"/\".*\" : Fun", []}
  20. , {"E || \"mnesia\":\"clear_table\"/\".*\" : Fun", []}
  21. , {"E || \"mnesia\":\"create_table\"/\".*\" : Fun", []}
  22. , {"E || \"mnesia\":\"delete_table\"/\".*\" : Fun", []}
  23. ]}.
  24. {dialyzer, [
  25. {warnings, [unmatched_returns, error_handling]},
  26. {plt_location, "."},
  27. {plt_prefix, "emqx_dialyzer"},
  28. {plt_apps, all_apps},
  29. {statistics, true}
  30. ]
  31. }.
  32. {cover_opts, [verbose]}.
  33. {cover_export_enabled, true}.
  34. {cover_excl_mods, [emqx_exproto_pb, emqx_exhook_pb]}.
  35. {provider_hooks, [{pre, [{release, {relup_helper, gen_appups}}]}]}.
  36. {post_hooks,[]}.
  37. {deps,
  38. [ {lc, {git, "https://github.com/qzhuyan/lc.git", {tag, "0.1.2"}}}
  39. , {redbug, "2.0.7"}
  40. , {gpb, "4.11.2"} %% gpb only used to build, but not for release, pin it here to avoid fetching a wrong version due to rebar plugins scattered in all the deps
  41. , {typerefl, {git, "https://github.com/k32/typerefl", {tag, "0.8.6"}}}
  42. , {ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.1.12"}}}
  43. , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  44. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  45. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}}
  46. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.0"}}}
  47. , {mria, {git, "https://github.com/emqx/mria", {tag, "0.1.5"}}}
  48. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.11.2"}}}
  49. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.0"}}}
  50. , {minirest, {git, "https://github.com/emqx/minirest", {tag, "1.2.9"}}}
  51. , {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.2"}}}
  52. , {replayq, "0.3.3"}
  53. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}}
  54. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.4.3"}}}
  55. , {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.4"}}}
  56. , {observer_cli, "1.7.1"} % NOTE: depends on recon 2.5.x
  57. , {system_monitor, {git, "https://github.com/k32/system_monitor", {tag, "2.2.1"}}}
  58. , {getopt, "1.0.2"}
  59. , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.16.0"}}}
  60. , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.22.2"}}}
  61. , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.4.1"}}}
  62. , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}}
  63. , {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.2"}}}
  64. ]}.
  65. {xref_ignores,
  66. [ %% schema registry is for enterprise
  67. {emqx_schema_registry,get_all_schemas,0},
  68. {emqx_schema_api,format_schema,1},
  69. {emqx_schema_api,make_schema_params,1},
  70. {emqx_schema_parser,decode,3},
  71. {emqx_schema_parser,encode,3},
  72. {emqx_schema_registry,add_schema,1},
  73. emqx_exhook_pb, % generated code for protobuf
  74. emqx_exproto_pb % generated code for protobuf
  75. ]}.