No Import

View Source
import attributes should not be used.
Avoid
-import(lists, [map/2]).
process(Items, Fun) ->
map(Fun, Items).Prefer
process(Items, Fun) ->
lists:map(Fun, Items).Rationale
The use of -import attributes reduces code clarity by making it harder to determine
which module a function originates from. This can lead to name collisions, reduce readability,
and increase maintenance complexity - especially in large codebases.
Options
- None.
Example configuration
{elvis_style, no_import, #{}}