lue-bird/elm-review-mini-common/1.0.0

ImportExposingIsExplicit

review : Review

Enforces that all imports with exposes specify the member names and don't use the exposing (..) syntax to expose everything.

When you import everything from a module without explicitly listing what you actually need, it becomes harder to know where a reference comes from and which "domain" it belongs to for example. Try using qualified imports like ModuleName.member or if that becomes too inconvenient, explicitly list what exposes you want to import for use without qualification.

reported

import Test exposing (..)


test =
    test "example"
        (\() -> Expect.pass)

not reported

import Test exposing (test)


test =
    test "example"
        (\() -> Expect.pass)