rebar.config 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %% -*- mode: erlang -*-
  2. {erl_opts, [
  3. warn_unused_vars,
  4. warn_shadow_vars,
  5. warn_unused_import,
  6. warn_obsolete_guard,
  7. compressed
  8. ]}.
  9. {xref_checks, [
  10. undefined_function_calls,
  11. undefined_functions,
  12. locals_not_used,
  13. deprecated_function_calls,
  14. warnings_as_errors,
  15. deprecated_functions
  16. ]}.
  17. %% Deps here may duplicate with emqx.git root level rebar.config
  18. %% but there may not be any discrepancy.
  19. %% This rebar.config is necessary because the app may be used as a
  20. %% `git_subdir` dependency in other projects.
  21. {deps, [
  22. {emqx_utils, {path, "../emqx_utils"}},
  23. {emqx_durable_storage, {path, "../emqx_durable_storage"}},
  24. {lc, {git, "https://github.com/emqx/lc.git", {tag, "0.3.2"}}},
  25. {gproc, {git, "https://github.com/emqx/gproc", {tag, "0.9.0.1"}}},
  26. {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.2"}}},
  27. {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.6"}}},
  28. {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.15.6"}}},
  29. {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}},
  30. {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.13"}}},
  31. {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}},
  32. {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}},
  33. {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}},
  34. {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.8"}}}
  35. ]}.
  36. {plugins, [{rebar3_proper, "0.12.1"}, rebar3_path_deps]}.
  37. {extra_src_dirs, [{"etc", [recursive]}]}.
  38. {profiles, [
  39. {test, [
  40. {deps, [
  41. {meck, "0.9.2"},
  42. {proper, "1.4.0"},
  43. {bbmustache, "1.10.0"},
  44. {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.8.6"}}}
  45. ]},
  46. {extra_src_dirs, [{"test", [recursive]}]}
  47. ]}
  48. ]}.
  49. {dialyzer, [
  50. {warnings, [unmatched_returns, error_handling]},
  51. {plt_location, "."},
  52. {plt_prefix, "emqx_dialyzer"},
  53. {plt_apps, all_apps},
  54. {plt_extra_apps, [hocon]},
  55. {statistics, true}
  56. ]}.
  57. {project_plugins, [erlfmt]}.
  58. {erlfmt, [
  59. {files, [
  60. "{src,include,test}/*.{hrl,erl,app.src}",
  61. "rebar.config",
  62. "rebar.config.script"
  63. ]}
  64. ]}.