rebar.config 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. {shell, [{apps, [jsone]}]}.
  26. {dialyzer,
  27. [
  28. {warnings, [error_handling, race_conditions, unmatched_returns, unknown, no_improper_lists]}
  29. ]}.
  30. {profiles,
  31. [
  32. {native,
  33. [
  34. {erl_opts, [{d, 'ENABLE_HIPE'}]}
  35. ]},
  36. {edown,
  37. [
  38. {edoc_opts,
  39. [
  40. {doclet, edown_doclet}
  41. ]},
  42. {deps,
  43. [
  44. edown
  45. ]}
  46. ]},
  47. {test,
  48. [
  49. {plugins, [rebar_covertool]}
  50. ]}
  51. ]}.