Skip to content

Don't crash on deprecated rules, but print a warning about them #482

@kivra-pauoli

Description

@kivra-pauoli

Bug Description

Elvis crashes with undef if e.g. a consumer is tweaking a default rule that's no longer present.

To Reproduce

Tweak macro_module_names and run Elvis.

Expected Behavior

Print a warning (a deprecation notice) for a given list of rules (we have them identified in the doc_rules), this way it'll be more pleasant to get results and the consumer can adapt to those.

rebar3 Logs

n/a

Additional Context

n/a

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions