ANAPI-29: Erlang support (#3)

* Add Erlang support

* Add forgotten period
This commit is contained in:
Toporkov Igor 2020-10-09 16:37:12 +03:00 committed by GitHub
parent d822f7c442
commit dbb7d3a448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 81 additions and 0 deletions

3
.gitignore vendored
View File

@ -9,6 +9,9 @@ ebin/*.beam
rel/example_project
.concrete/DEV_MODE
.rebar
include/*.hrl
src/*.erl
_build/
target/
pom.xml.tag
pom.xml.releaseBackup

68
rebar.config Normal file
View File

@ -0,0 +1,68 @@
%% 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
]}.
%% XRef checks
{xref_checks, [
undefined_function_calls,
undefined_functions,
deprecated_functions_calls,
deprecated_functions
]}.
%% Tests
{cover_enabled, true}.
%% Dialyzer static analyzing
{dialyzer, [
{warnings, [
% mandatory
unmatched_returns,
error_handling,
race_conditions,
unknown
]},
{plt_apps, all_deps}
]}.
{deps, []}.
{plugins, [
{rebar3_thrift_compiler,
{git, "https://github.com/rbkmoney/rebar3_thrift_compiler.git", {tag, "0.3.0"}}}
]}.
{provider_hooks, [
{pre, [
{compile, {thrift, compile}},
{clean , {thrift, clean }}
]}
]}.
{thrift_compiler_opts, [
{in_dir, "proto"},
{gen, "erlang:app_prefix=cds_proto,scoped_typenames"}
]}.

1
rebar.lock Normal file
View File

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

View File

@ -0,0 +1,9 @@
{application, party_shop_proto, [
{description, "Thrift proto for party-shop service"},
{vsn, "0.1.0"},
{applications, [
kernel,
stdlib
]},
{maintainers, []}
]}.