rebar.config 996 B

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