Current section
Files
Jump to
Current section
Files
segmented_cache
rebar.config
rebar.config
{minimum_otp_vsn, "26"}.
{erl_opts, [
debug_info,
warn_unused_vars,
warnings_as_errors,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_deprecated_function,
warn_obsolete_guard,
strict_validation,
warn_export_vars,
warn_exported_vars
]}.
{deps, [
{telemetry, "~> 1.3"}
]}.
{project_plugins, [
{rebar3_hex, "~> 7.0"},
{rebar3_ex_doc, "~> 0.2"},
{rebar3_lint, "~> 4.0"},
{erlfmt, "~> 1.6"},
{covertool, "~> 2.0"}
]}.
{profiles, [
{test, [
{erl_opts, []},
{deps, [{proper, "~> 1.5"}]},
{covertool, [{coverdata_files, ["ct.coverdata"]}]},
{cover_opts, [verbose, {min_coverage, 75}]},
{cover_enabled, true},
{cover_export_enabled, true}
]},
{prod, [
{erl_opts, [inline_list_funcs, deterministic]}
]}
]}.
%% take out warnings for unused exported functions
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.
{hex, [
{doc, #{provider => ex_doc}}
]}.
{ex_doc, [
{source_url, <<"https://github.com/esl/segmented_cache">>},
{main, <<"readme">>},
{extras, [
{'README.md', #{title => <<"Overview">>}},
{'design_notes.md', #{title => <<"Design Notes">>}},
{'LICENSE', #{title => <<"License">>}}
]}
]}.
{erlfmt, [
write,
{files, [
"{src,test}/**/*.{hrl,erl,app.src}",
"rebar.config"
]}
]}.
{elvis, [
#{
dirs => ["src"],
filter => "*.erl",
ruleset => erl_files,
rules => [
{elvis_style, export_used_types, disable},
{elvis_style, private_data_types, disable}
]
},
#{
dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config
}
]}.