rebar.config 947 B

1234567891011121314151617181920212223242526272829303132333435
  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. {xref_checks, [fail_on_warning, undefined_function_calls]}.
  10. {clean_files, [".eunit/*", "ebin/*.beam"]}.
  11. {cover_enabled, true}.
  12. {edoc_opts,
  13. [{dialyzer_specs, all},
  14. {report_missing_type, true},
  15. {report_type_mismatch, true},
  16. {pretty_print, erl_pp},
  17. {preprocess, true}]}.
  18. {validate_app_modules, true}.
  19. {shell, [{apps, [jsone]}]}.
  20. {dialyzer, [{warnings, [error_handling, race_conditions, unmatched_returns, unknown, no_improper_lists]}]}.
  21. {profiles,
  22. [{native, [{erl_opts, [{d, 'ENABLE_HIPE'}]}]}, {edown, [{edoc_opts, [{doclet, edown_doclet}]}, {deps, [edown]}]}]}.
  23. {project_plugins, [covertool]}.
  24. {cover_export_enabled, true}.
  25. {covertool, [{coverdata_files, ["ct.coverdata", "eunit.coverdata"]}]}.
  26. {plugins, [rebar3_efmt]}.