rebar.config 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. {shell, [{apps, [jsone]}]}.
  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. ]}.
  47. {project_plugins, [covertool]}.
  48. {cover_export_enabled, true}.
  49. {covertool, [{coverdata_files, ["ct.coverdata", "eunit.coverdata"]}]}.