rebar.config 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. {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. {shell, [{apps, [jsone]}]}.
  24. {dialyzer,
  25. [
  26. {warnings, [error_handling, race_conditions, unmatched_returns, unknown, no_improper_lists]}
  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. ]}.
  46. {project_plugins, [covertool]}.
  47. {cover_export_enabled, true}.
  48. {covertool, [{coverdata_files, ["ct.coverdata", "eunit.coverdata"]}]}.