rebar.config 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ]}.
  9. {xref_checks, [
  10. fail_on_warning,
  11. undefined_function_calls
  12. ]}.
  13. {clean_files, [".eunit/*", "ebin/*.beam"]}.
  14. {cover_enabled, true}.
  15. {edoc_opts, [
  16. {dialyzer_specs, all},
  17. {report_missing_type, true},
  18. {report_type_mismatch, true},
  19. {pretty_print, erl_pp},
  20. {preprocess, true}
  21. ]}.
  22. {validate_app_modules, true}.
  23. {dialyzer,
  24. [
  25. {warnings, [error_handling, race_conditions, unmatched_returns]}
  26. ]}.
  27. {profiles,
  28. [
  29. {native,
  30. [
  31. {erl_opts, [{d, 'ENABLE_HIPE'}]}
  32. ]},
  33. {edown,
  34. [
  35. {edoc_opts,
  36. [
  37. {doclet, edown_doclet}
  38. ]},
  39. {deps,
  40. [
  41. edown
  42. ]}
  43. ]}
  44. ]}.