-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrebar.config
More file actions
137 lines (123 loc) · 3.21 KB
/
rebar.config
File metadata and controls
137 lines (123 loc) · 3.21 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
%% -*- mode: erlang; -*-
{minimum_otp_vsn, "25"}.
{erl_opts, [
debug_info,
report_warnings,
{warn_format, 1},
warn_export_vars,
warn_unused_vars,
warn_obsolete_guard,
warn_unused_import,
warn_missing_spec,
warn_untyped_record
]}.
{project_plugins, [
{rebar3_codecov, {git, "https://github.com/esl/rebar3_codecov.git", {ref, "89915c0\n"}}},
{rebar3_lint, "~> 4.2"},
{erlfmt, "~> 1.7"},
{rebar3_proper, "~> 0.12"}
]}.
{erlfmt, [
write,
{print_width, 120},
{files, [
"{src,include,test}/*.{hrl,erl}",
"src/*.app.src",
"rebar.config",
"elvis.config"
]}
]}.
{dialyzer, [
{warnings, [
unmatched_returns,
error_handling,
unknown
]},
{plt_apps, all_deps},
{plt_extra_apps, [crypto, ssl]}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
exports_not_used,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.
%% Suppress xref warnings for public library API functions
%% These are intentionally exported for external use
{xref_ignores, [
%% Public library API - Main interface
{gen_http, connect, 3},
{gen_http, connect, 4},
{gen_http, close, 1},
{gen_http, is_open, 1},
{gen_http, is_alive, 1},
{gen_http, get_socket, 1},
{gen_http, set_mode, 2},
{gen_http, controlling_process, 2},
{gen_http, put_log, 2},
{gen_http, request, 5},
{gen_http, stream, 2},
{gen_http, recv, 3},
{gen_http, put_private, 3},
{gen_http, get_private, 2},
{gen_http, get_private, 3},
{gen_http, delete_private, 2},
{gen_http, is_retriable_error, 1},
{gen_http, classify_error, 1},
%% Protocol-specific APIs (also available for direct use)
{gen_http_h1, connect, 3},
{gen_http_h1, get_private, 2},
{gen_http_h1, stream_request_body, 3},
{gen_http_h2, connect, 3},
{gen_http_h2, get_private, 2},
{gen_http_h2, get_window_size, 2},
{gen_http_h2, stream_request_body, 3},
%% Parser utilities (used internally, false positive from xref)
{gen_http_parser_h2, decode_next, 2},
{gen_http_parser_h2, encode_raw, 4},
{gen_http_parser_h2, set_flags, 2},
%% HPACK utilities (now actively used for SETTINGS_HEADER_TABLE_SIZE)
{gen_http_parser_hpack, new, 1},
{gen_http_parser_hpack, set_max_table_size, 2}
]}.
{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_print_enabled, true}.
{cover_export_enabled, true}.
{alias, [
{test, [
eunit, ct, proper, {cover, "-v --min_coverage=75"}
]}
]}.
{ct_opts, [
{sys_config, []},
{logdir, "_build/test/logs"},
%% Exclude h2_compliance_SUITE by default (slow, requires special Docker setup)
%% Run it explicitly with: rebar3 ct --suite=h2_compliance_SUITE
{suite, [
error_path_SUITE,
features_SUITE,
http1_SUITE,
http2_SUITE,
protocol_hardening_SUITE,
ssl_SUITE,
unified_SUITE
]}
]}.
{deps, []}.
{profiles, [
{test, [
{erl_opts, [
nowarn_untyped_record,
nowarn_missing_spec
]},
{deps, [{proper, "1.5.0"}]}
]},
{bench, [
{deps, [
{erlperf, "2.3.0"}
]}
]}
]}.