rebar.config 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 not be any descrpancy.
  19. %% This rebar.config is necessary because the app may be used as a
  20. %% `git_subdir` dependency in other projects.
  21. {deps, [
  22. {lc, {git, "https://github.com/emqx/lc.git", {tag, "0.3.1"}}},
  23. {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}},
  24. {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}},
  25. {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}},
  26. {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.4"}}},
  27. {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.13.4"}}},
  28. {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}},
  29. {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.30.0"}}},
  30. {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}},
  31. {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}},
  32. {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.0"}}}
  33. ]}.
  34. {plugins, [{rebar3_proper, "0.12.1"}]}.
  35. {extra_src_dirs, [{"etc", [recursive]}]}.
  36. {profiles, [
  37. {test, [
  38. {deps, [
  39. {meck, "0.9.2"},
  40. {proper, "1.4.0"},
  41. {bbmustache, "1.10.0"},
  42. {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.6.0"}}}
  43. ]},
  44. {extra_src_dirs, [{"test", [recursive]}]}
  45. ]}
  46. ]}.
  47. {dialyzer, [
  48. {warnings, [unmatched_returns, error_handling, race_conditions]},
  49. {plt_location, "."},
  50. {plt_prefix, "emqx_dialyzer"},
  51. {plt_apps, all_apps},
  52. {plt_extra_apps, [hocon]},
  53. {statistics, true}
  54. ]}.
  55. {project_plugins, [erlfmt]}.