rebar.config 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 developments and tests.
  5. %% With the help of EMQX'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/emqx/lc.git", {tag, "0.3.1"}}}
  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/ieQu1/typerefl", {tag, "0.9.1"}}}
  42. , {gun, {git, "https://github.com/emqx/gun", {tag, "1.3.7"}}}
  43. , {ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.3.0"}}}
  44. , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  45. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  46. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}}
  47. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.4"}}}
  48. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.13.4"}}}
  49. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}}
  50. , {grpc, {git, "https://github.com/emqx/grpc-erl", {tag, "0.6.6"}}}
  51. , {minirest, {git, "https://github.com/emqx/minirest", {tag, "1.3.6"}}}
  52. , {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.2"}}}
  53. , {replayq, "0.3.4"}
  54. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}}
  55. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.6.0"}}}
  56. , {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.4"}}}
  57. , {observer_cli, "1.7.1"} % NOTE: depends on recon 2.5.x
  58. , {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.3"}}}
  59. , {getopt, "1.0.2"}
  60. , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.0"}}}
  61. , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.30.0"}}}
  62. , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.1"}}}
  63. , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}}
  64. , {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.2"}}}
  65. ]}.
  66. {xref_ignores,
  67. [ %% schema registry is for enterprise
  68. {emqx_schema_registry,get_all_schemas,0},
  69. {emqx_schema_api,format_schema,1},
  70. {emqx_schema_api,make_schema_params,1},
  71. {emqx_schema_parser,decode,3},
  72. {emqx_schema_parser,encode,3},
  73. {emqx_schema_registry,add_schema,1},
  74. emqx_exhook_pb, % generated code for protobuf
  75. emqx_exproto_pb % generated code for protobuf
  76. ]}.
  77. {project_plugins, [erlfmt, {rebar3_hex, "7.0.2"}]}.