%% SPDX-FileCopyrightText: 2023 Erlang Ecosystem Foundation
%% SPDX-License-Identifier: Apache-2.0

{erl_opts, [warn_unused_import, warn_export_vars, verbose, report, debug_info]}.

{minimum_otp_vsn, "26"}.

{deps, [
    {telemetry, "~> 1.2"},
    {telemetry_registry, "~> 0.3.1"},
    {jose, "~> 1.11"}
]}.

%% 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, "~> 1.3"},
    rebar3_hank,
    rebar3_lint
]}.

{validate_app_modules, true}.

{profiles, [
    {test, [
        {deps, [
            {meck, "~> 0.9.2"},
            {jsx, "~> 3.1"}
        ]},
        {cover_enabled, true},
        {cover_export_enabled, true},
        {coveralls_coverdata, "_build/test/cover/*.coverdata"},
        {coveralls_service_name, "github"},
        {cover_opts, [verbose]}
    ]}
]}.

{hank, [
    {ignore, [
        {"test/**/*_SUITE.erl", [unnecessary_function_arguments]},
        "include/**/*.hrl",
        "certification/**/*",
        "deps/**/*"
    ]}
]}.

{erlfmt, [write]}.

{shell, [{apps, [oidcc]}]}.
