Skip to content

Commit 7c7f99d

Browse files
authored
Merge pull request #4483 from esl/elvis-change
Elvis.config changes
2 parents 00a14eb + 624b3f9 commit 7c7f99d

File tree

1 file changed

+44
-6
lines changed

1 file changed

+44
-6
lines changed

elvis.config

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,54 @@
66
[#{dirs => ["src"],
77
filter => "*.erl",
88
ruleset => erl_files,
9-
rules => [{elvis_style, line_length, #{limit => 100,
10-
skip_comments => false}},
11-
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}}
12-
]
9+
ignore => ['XmppAddr', acl, adhoc, amp, amp_resolver, amp_strategy, cert_utils, ejabberd,
10+
ejabberd_admin, ejabberd_app, ejabberd_cowboy, ejabberd_ctl, ejabberd_local,
11+
ejabberd_router, ejabberd_s2s, ejabberd_s2s_in, ejabberd_s2s_out,
12+
ejabberd_service, ejabberd_sm, ejabberd_sm_cets, ejabberd_sm_mnesia,
13+
ejabberd_sm_redis, ejabberd_sup, eldap_filter, eldap_filter_yecc, eldap_pool,
14+
eldap_utils, gdpr_api, gen_hook, gen_iq_handler, gen_mod, gen_mod_deps, jlib,
15+
just_tls, mnesia_api, mod_adhoc, mod_amp, mod_auth_token_rdbms, mod_bind2,
16+
mod_bosh, mod_bosh_socket, mod_cache_users, mod_caps, mod_caps_mnesia,
17+
mod_carboncopy, mod_csi, mod_disco, mod_domain_isolation, mod_extdisco,
18+
mongoose_data_forms, mongoose_disco, mod_last_mnesia, mod_last_rdbms, mod_ping,
19+
mod_presence, mod_private, mod_private_mnesia, mod_private_rdbms,
20+
mod_push_service_mongoosepush, mod_register, mod_sasl2, mod_sic, mod_time,
21+
mod_websockets, mongoose_acc, mongoose_account_api, mongoose_amqp,
22+
mongoose_api_common, mongoose_bin, mongoose_cets_discovery,
23+
mongoose_cets_discovery_rdbms, mongoose_cleaner, mongoose_cluster,
24+
mongoose_deprecations, mongoose_http_client, mongoose_instrument_probe_cets,
25+
mongoose_iq_worker, mongoose_lib, mongoose_local_delivery, mongoose_mnesia,
26+
mongoose_packet_handler, mongoose_privacy, mongoose_rabbit_worker, mongoose_redis,
27+
mongoose_router_external, mongoose_router_external_localnode,
28+
mongoose_router_global, mongoose_router_localdomain, mongoose_scram,
29+
mongoose_server_api, mongoose_session_api, mongoose_start_node_id, mongoose_tls,
30+
mongoose_transport, mongoose_user_cache, mongoose_xmpp_errors, monitored_map,
31+
translate, tr_util, mod_last],
32+
rules => [{elvis_text_style, line_length, #{limit => 100,
33+
skip_comments => false}},
34+
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}}
35+
]
1336
},
1437
#{dirs => ["test", "test.disabled/mongoose_tests/tests"],
1538
filter => "*.erl",
1639
ruleset => erl_files,
17-
rules => [{elvis_style, line_length, #{limit => 100,
18-
skip_comments => false}},
40+
ignore => [amp_SUITE, amp_gen, auth_dummy_SUITE, auth_http_SUITE, auth_internal_SUITE,
41+
auth_jwt_SUITE, auth_tokens_SUITE, batches_SUITE, carboncopy_proper_tests_SUITE,
42+
component_reg_SUITE, config_parser_SUITE, ejabberd_helper, ejabberd_sm_SUITE,
43+
event_pusher_sns_SUITE, gen_hook_SUITE, gen_mod_SUITE, json_formatter_SUITE,
44+
logger_helper, mam_misc_SUITE, migration_scripts_SUITE, mim_ct_rest,
45+
mim_ct_rest_handler, mod_global_distrib_SUITE, mod_mam_SUITE,
46+
mod_offline_mnesia_SUITE, mod_websockets_SUITE, mongoose_cleanup_SUITE,
47+
mongoose_config_SUITE, mongoose_deprecations_SUITE, mongoose_domain_core_SUITE,
48+
mongoose_graphql_SUITE, mongoose_instrument_SUITE,
49+
mongoose_instrument_metrics_SUITE, mongoose_lazy_routing_SUITE,
50+
mongoose_listener_SUITE, mongoose_rabbit_worker_SUITE, mongoose_rdbms_SUITE,
51+
mongoose_subdomain_core_SUITE, mongoose_wpool_SUITE, mongooseim_loglevel_SUITE,
52+
mongooseim_loglevel_SUITE_helper, muc_light_SUITE, privacy_SUITE,
53+
pubsub_backend_SUITE, roster_SUITE, router_SUITE, safely_SUITE, translate_SUITE,
54+
xmlel_gen, acl_SUITE],
55+
rules => [{elvis_text_style, line_length, #{limit => 100,
56+
skip_comments => false}},
1957
{elvis_style, invalid_dynamic_call, disable},
2058
{elvis_style, no_debug_call, disable},
2159
{elvis_style, no_spec_with_records, disable},

0 commit comments

Comments
 (0)