inaka / elvis_core

The core of an Erlang linter
Other
61 stars 56 forks source link

Should `no_macros` consider `LOG_...` as allowed? #337

Closed kivra-pauoli closed 7 months ago

kivra-pauoli commented 7 months ago

Bug Description

Maybe no_macros should consider LOG_... (and friends) as allowed (?)

To Reproduce

Use logger's LOG_INFO.

Expected Behavior

No warnings.

rebar3 Logs

Not applicable.

Additional Context

Not applicable.

elbrujohalcon commented 7 months ago

I agree, they should be treated as predefined macros.

paulo-ferraz-oliveira commented 7 months ago

Released, in Github, as 3.2.2: https://github.com/inaka/elvis_core/releases/tag/3.2.2.

paulo-ferraz-oliveira commented 7 months ago

Published, to Hex, as 3.2.2: https://hex.pm/packages/elvis_core/3.2.2.