-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
rebar.config
80 lines (69 loc) · 2.15 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{erl_opts, [warn_unused_import, warn_export_vars, verbose, report, debug_info]}.
{minimum_otp_vsn, "26"}.
{deps, [
{cowboy, "~> 2.10"},
{oidcc, "~> 3.0"},
%% TODO: Switch to official package once this PR is merged and released:
%% https://github.com/chvanikoff/cowboy_session/pull/3
{cowboy_session, "~> 2.0", {pkg, oidcc_cowboy_session}}
]}.
%% TODO: Remove once the following issue is resolved:
%% https://github.com/potatosalad/erlang-jose/issues/168
{overrides, [
{override, jose, [{erl_opts, []}]}
]}.
{project_plugins, [
%% Revert back to released version when this PR is merged & released:
%% https://github.com/markusn/coveralls-erl/pull/36
{coveralls, ".*",
{git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}},
erlfmt,
rebar3_hank,
rebar3_lint,
rebar3_hex,
rebar3_ex_doc
]}.
{hex, [
{doc, #{provider => ex_doc}}
]}.
{validate_app_modules, true}.
{hank, [
{ignore, [
{"src/{oidcc_cowboy_load_userinfo,oidcc_cowboy_introspect_token,oidcc_cowboy_extract_authorization,oidcc_cowboy_validate_jwt_token}.erl",
[unnecessary_function_arguments]},
{"src/oidcc_cowboy_cache.erl", [unused_callbacks]},
{"test/**/*_SUITE.erl", [unnecessary_function_arguments]},
"include/**/*.hrl"
]}
]}.
{ex_doc, [
{extras, [
{"README.md", #{title => "Overview"}},
{"LICENSE", #{title => "License"}}
]},
{main, "README.md"},
{homepage_url, "https://github.com/erlef/oidcc_cowboy"},
{source_url, "https://github.com/erlef/oidcc_cowboy"},
{logo, "assets/logo.svg"},
{assets, "assets"}
]}.
{profiles, [
{test, [
{deps, [{meck, "~> 0.9"}]},
{cover_enabled, true},
{cover_export_enabled, true},
{coveralls_coverdata, "_build/test/cover/*.coverdata"},
{coveralls_service_name, "github"},
{cover_opts, [verbose]}
]}
]}.
{erlfmt, [
write,
{files, [
"{src,include,test}/*.{hrl,erl,app.src}",
"rebar.config",
"example/{src,include,test}/*.{hrl,erl,app.src}",
"example/rebar.config"
]}
]}.
{shell, [{apps, [oidcc_cowboy]}]}.