rebar.config 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {erl_opts, [
  2. {platform_define, "^[0-9]+", namespaced_types},
  3. {platform_define, "^(19|2)", rand_only},
  4. {platform_define, "^(1|20)", fun_stacktrace},
  5. debug_info,
  6. bin_opt_info,
  7. warn_bif_clash,
  8. warn_export_all,
  9. warn_obsolete_guard,
  10. warn_unused_import,
  11. warn_unused_record,
  12. warn_untyped_record,
  13. warn_shadow_vars,
  14. warn_unused_vars,
  15. warn_export_vars,
  16. warn_exported_vars,
  17. warn_unused_function,
  18. warn_deprecated_function,
  19. strict_validation
  20. %, warn_missing_spec
  21. ]}.
  22. {deps, [
  23. ]}.
  24. {profiles, [
  25. {dev, [
  26. {edoc_opts, [{doclet, edown_doclet}]},
  27. {deps, [
  28. {edown, ".*",
  29. {git, "https://github.com/uwiger/edown.git", {tag, "0.8"}}}
  30. ]},
  31. {erl_opts, [nowarn_export_all]}
  32. ]},
  33. {test, [
  34. {erl_opts, [nowarn_export_all]}
  35. ]
  36. }
  37. ]}.
  38. {eunit_opts, [{report, {eunit_progress, [colored, profile]}}]}.
  39. {eunit_compile_opts, [export_all]}.
  40. {ct_opts, []}.
  41. {ct_compile_opts, [{i, "./include/"}]}.
  42. {cover_enabled, true}.
  43. {cover_print_enabled, true}.
  44. {xref_checks, [
  45. undefined_function_calls,
  46. undefined_functions,
  47. locals_not_used,
  48. %% exports_not_used,
  49. deprecated_function_calls,
  50. deprecated_functions
  51. ]}.