Packages

SSL Certificate Management Library with Let's Encrypt ACME support

Current section

Files

Jump to
ssl_cert rebar.config
Raw

rebar.config

{erl_opts, [
debug_info,
warn_unused_vars,
warnings_as_errors,
warn_export_all,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_deprecated_function,
warn_obsolete_guard,
warn_export_vars,
warn_exported_vars,
warn_missing_spec,
warn_missing_doc
]}.
{src_dirs, ["src"]}.
{profiles, [
{test, [
{erl_opts, [
nowarn_missing_spec,
nowarn_missing_doc,
nowarn_unused_function,
nowarn_unused_vars,
nowarn_export_all,
nowarn_shadow_vars,
nowarn_unused_import,
nowarn_unused_record,
nowarn_deprecated_function,
nowarn_obsolete_guard,
nowarn_export_vars,
nowarn_exported_vars
]},
{covertool, [{coverdata_files, ["eunit.coverdata", "ct.coverdata"]}]},
{cover_enabled, true},
{cover_export_enabled, true}
]}
]}.
{deps, [
{gun, "~> 2.2.0"}
]}.
{overrides, [
{override, gun, [
{deps, [
{cowlib, "2.15.0"}
]}
]}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
exports_not_used,
deprecated_function_calls,
deprecated_functions
]}.
{project_plugins, [
{rebar3_hex, "~> 7.0"},
{rebar3_lint, "~> 4.0"},
{rebar3_ex_doc, "~> 0.2"},
{erlfmt, "~> 1.6"},
{covertool, "~> 2.0"}
]}.
{hex, [{doc, #{provider => ex_doc}}]}.
{ex_doc, [
{source_url, <<"https://github.com/permaweb/ssl_cert">>},
{main, <<"readme">>},
{extras, [
{'README.md', #{title => <<"Overview">>}},
{'LICENSE', #{title => <<"License">>}}
]}
]}.
{erlfmt, [
write,
{files, [
"include/**/*.{hrl,erl,app.src}",
"src/**/*.{hrl,erl,app.src}",
"tests/**/*.{hrl,erl,app.src}",
"rebar.config"
]}
]}.
{elvis, [
#{
dirs => ["src","tests"],
filter => "*.erl",
rules => [
{elvis_text_style, line_length, #{limit => 100}},
{elvis_style, invalid_dynamic_call, #{ignore => []}},
{elvis_style, god_modules, #{limit => 25}},
{elvis_style, private_data_types, disable},
{elvis_style, export_used_types, disable},
{elvis_style, atom_naming_convention, #{
regex =>
"^([a-z](_?[a-z0-9]+)*(_SUITE)?|publicExponent|privateExponent|subjectPKInfo|certificationRequestInfo|signatureAlgorithm|utf8String|rdnSequence|dNSName|iPAddress|extnID|extnValue|asn1_NOVALUE|asn1_OPENTYPE)$",
enclosed_atoms => ".*",
forbidden_regex => undefined,
forbidden_enclosed_regex => undefined
}},
{elvis_style, variable_naming_convention, #{
regex => "^(_?[A-Z][0-9a-zA-Z]*|SPKI_Der|CN_DER|SAN_Der)$"
}}
],
ruleset => erl_files
},
#{
dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config
}
]}.
{shell, [
{apps, [ssl_cert]}
]}.