rebar.config 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. %% -*- erlang -*-
  2. {erl_opts, [
  3. warnings_as_errors,
  4. warn_export_all,
  5. warn_untyped_record,
  6. inline,
  7. {platform_define, "^R[01][0-9]", 'NO_MAP_TYPE'},
  8. {platform_define, "(^R|17)", 'NO_DIALYZER_SPEC'},
  9. {platform_define, "^(R|1|20)", 'FUN_STACKTRACE'}
  10. ]}.
  11. {xref_checks, [
  12. fail_on_warning,
  13. undefined_function_calls
  14. ]}.
  15. {clean_files, [".eunit/*", "ebin/*.beam"]}.
  16. {cover_enabled, true}.
  17. {edoc_opts, [
  18. {dialyzer_specs, all},
  19. {report_missing_type, true},
  20. {report_type_mismatch, true},
  21. {pretty_print, erl_pp},
  22. {preprocess, true}
  23. ]}.
  24. {validate_app_modules, true}.
  25. {dialyzer,
  26. [
  27. {warnings, [error_handling, race_conditions, unmatched_returns, unknown, no_improper_lists]}
  28. ]}.
  29. {profiles,
  30. [
  31. {native,
  32. [
  33. {erl_opts, [{d, 'ENABLE_HIPE'}]}
  34. ]},
  35. {edown,
  36. [
  37. {edoc_opts,
  38. [
  39. {doclet, edown_doclet}
  40. ]},
  41. {deps,
  42. [
  43. edown
  44. ]}
  45. ]}
  46. ]}.