Skip to content

Commit

Permalink
Global replace compile(nowarn_export_all) to compile([export_all, now…
Browse files Browse the repository at this point in the history
…arn_export_all])
  • Loading branch information
vkatsuba committed Sep 23, 2021
1 parent 341614b commit 41d03c7
Show file tree
Hide file tree
Showing 138 changed files with 140 additions and 212 deletions.
3 changes: 1 addition & 2 deletions big_tests/tests/acc_e2e_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(acc_e2e_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("exml/include/exml.hrl").
-include_lib("escalus/include/escalus.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/acc_e2e_SUITE_data/acc_test_helper.erl
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
-module(acc_test_helper).
-author("bartek").

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

test_save_acc(#{ stanza := #{ type := <<"chat">>} } = Acc, _State) ->
Rand = rand:uniform(),
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/accounts_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(accounts_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("escalus/include/escalus_xmlns.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/adhoc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
%% limitations under the License.
%%==============================================================================
-module(adhoc_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
5 changes: 2 additions & 3 deletions big_tests/tests/amp_big_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
%% @copyright 2014 Erlang Solutions, Ltd.
%% This work was sponsored by Grindr.com

-compile([export_all]).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-include_lib("common_test/include/ct.hrl").
-include_lib("escalus/include/escalus.hrl").
-include_lib("escalus/include/escalus_xmlns.hrl").
Expand Down Expand Up @@ -123,7 +122,7 @@ init_per_suite(Config) ->

amp_test_helper_code() ->
"-module(amp_test_helper).\n"
"-compile(export_all).\n"
"-compile([export_all, nowarn_export_all]).\n"
"setup_meck() ->\n"
" meck:expect(ejabberd_socket, send, fun ejabberd_socket_send/2).\n"
"ejabberd_socket_send(Socket, Data) ->\n"
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/anonymous_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(anonymous_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/bosh_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(bosh_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/carboncopy_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-module(carboncopy_SUITE).

-compile([export_all]).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-include_lib("common_test/include/ct.hrl").
-include_lib("proper/include/proper.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/cluster_commands_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(cluster_commands_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-import(distributed_helper, [add_node_to_cluster/2,
is_sm_distributed/0,
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/common_helper.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(common_helper).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

get_bjid(UserSpec) ->
User = proplists:get_value(username, UserSpec),
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/component_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(component_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/connect_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================
-module(connect_SUITE).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/disco_and_caps_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(disco_and_caps_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("eunit/include/eunit.hrl").
-include_lib("escalus/include/escalus_xmlns.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/distributed_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

-import(ejabberd_node_utils, [get_cwd/2]).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-type rpc_spec() :: #{node := node(),
cookie => atom(),
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/domain_isolation_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-import(distributed_helper, [mim/0, require_rpc_nodes/1, rpc/4, subhost_pattern/1]).
-import(domain_helper, [host_type/0, secondary_host_type/0]).

Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/domain_removal_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-module(domain_removal_SUITE).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-import(distributed_helper, [mim/0, rpc/4, subhost_pattern/1]).
-import(domain_helper, [host_type/0, domain/0]).
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/dynamic_domains_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
-include_lib("exml/include/exml.hrl").

%% API
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-import(distributed_helper, [mim/0, mim2/0, rpc/4,
require_rpc_nodes/1,
subhost_pattern/1]).
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/extdisco_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@

-define(NS_EXTDISCO, <<"urn:xmpp:extdisco:2">>).

-compile([export_all]).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

all() ->
[{group, extdisco_not_configured},
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/jingle_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(jingle_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("common_test/include/ct.hrl").
-include_lib("exml/include/exml.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/last_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
%% limitations under the License.
%%==============================================================================
-module(last_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/login_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(login_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("escalus/include/escalus_xmlns.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/metrics_api_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
%% limitations under the License.
%%==============================================================================
-module(metrics_api_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("common_test/include/ct.hrl").

Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/metrics_c2s_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(metrics_c2s_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/metrics_helper.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-module(metrics_helper).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-import(distributed_helper, [mim/0, mim2/0,
rpc/4]).
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/metrics_register_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(metrics_register_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/metrics_roster_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(metrics_roster_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/metrics_session_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(metrics_session_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_aws_sns_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(mod_aws_sns_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_blocking_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(mod_blocking_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("exml/include/exml.hrl").
-include_lib("escalus/include/escalus.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_event_pusher_http_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
-module(mod_event_pusher_http_SUITE).
-author("[email protected]").

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_global_distrib_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

-module(mod_global_distrib_SUITE).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_ping_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
%% limitations under the License.
%%==============================================================================
-module(mod_ping_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("escalus/include/escalus_xmlns.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_time_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(mod_time_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mod_version_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(mod_version_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).
-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mongoose_cassandra_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
%%.

-module(mongoose_cassandra_SUITE).
-compile([export_all]).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

%%
%%' Imports
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mongoose_elasticsearch_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@

-module(mongoose_elasticsearch_SUITE).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mongoose_sanity_checks_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-module(mongoose_sanity_checks_SUITE).

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

all() ->
[is_mongooseim].
Expand Down
4 changes: 1 addition & 3 deletions big_tests/tests/mongooseimctl_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
%% limitations under the License.
%%==============================================================================
-module(mongooseimctl_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile(nowarn_shadow_vars).
-compile([export_all, nowarn_export_all, nowarn_shadow_vars]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/mongooseimctl_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
-module(mongooseimctl_helper).
-author("ludwikbukowski").

-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").

Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/muc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
%%==============================================================================

-module(muc_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-compile([export_all, nowarn_export_all]).

-include_lib("escalus/include/escalus.hrl").
-include_lib("escalus/include/escalus_xmlns.hrl").
Expand Down
Loading

0 comments on commit 41d03c7

Please sign in to comment.