damsel as rebar3 depend (#722)

This commit is contained in:
dinama 2021-09-28 14:09:26 +03:00 committed by GitHub
parent 5ef0be3120
commit 5cc3de5b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 79 additions and 2 deletions

View File

@ -16,7 +16,7 @@ SERVICE_IMAGE_TAG ?= $(shell git rev-parse HEAD)
SERVICE_IMAGE_PUSH_TAG ?= $(SERVICE_IMAGE_TAG)
BUILD_IMAGE_TAG := 4536c31941b9c27c134e8daf0fd18848809219c9
BUILD_IMAGE_TAG := 25c031edd46040a8745334570940a0f0b2154c5c
PROTODIR = proto
FILES = $(wildcard $(PROTODIR)/*.thrift)

@ -1 +1 @@
Subproject commit 34f432a1e8e0adedbba23ecd29c1eb2412a8d416
Subproject commit be44d69fc87b22a0bb82d98d6eae7658d1647f98

65
rebar.config Normal file
View File

@ -0,0 +1,65 @@
%% Common project erlang options.
{erl_opts, [
% mandatory
debug_info,
warnings_as_errors,
warn_export_all,
warn_missing_spec,
warn_untyped_record,
warn_export_vars,
% by default
warn_unused_record,
warn_bif_clash,
warn_obsolete_guard,
warn_unused_vars,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_deprecated_function,
% at will
% bin_opt_info
% no_auto_import,
warn_missing_spec_all
]}.
{deps, []}.
%% XRef checks
{xref_checks, [
undefined_function_calls,
undefined_functions,
deprecated_functions_calls,
deprecated_functions
]}.
%% Dialyzer static analyzing
{dialyzer, [
{warnings, [
% mandatory
unmatched_returns,
error_handling,
race_conditions,
unknown
]},
{plt_apps, all_deps}
]}.
{plugins, [
{rebar3_thrift_compiler,
{git, "https://github.com/rbkmoney/rebar3_thrift_compiler.git", {branch, "master"}}}
]}.
{provider_hooks, [
{pre, [
{compile, {thrift, compile}},
{clean , {thrift, clean }}
]}
]}.
{thrift_compiler_opts, [
{in_dir, "proto"},
{gen, "erlang:scoped_typenames,app_prefix=dmsl"}
]}.

1
rebar.lock Normal file
View File

@ -0,0 +1 @@
[].

11
src/damsel.app.src Normal file
View File

@ -0,0 +1,11 @@
{application, damsel, [
{description, "Damsel modules compiled to use as a dependency"},
{vsn, "1"},
{applications, [
kernel,
stdlib
]},
{maintainers, [
"Mayorov Andrey <a.mayorov@rbkmoney.com>"
]}
]}.