Skip to content

Incorrect suggestion when using reducers #245

Open
@Kineolyan

Description

@Kineolyan

When using reducer methods instead of standard map or filter, kibit seems to get confused.
With the following code, kibit suggests to replace into [] by vec:

(into [] (r/filter even? (r/map inc (range 10))))

However, this is not valid as vec is not a supported collection producer, unlike into.

If you need, I can provide the small lein project I cooked to test this.

Additional info

Clojure version: 1.10.1
Kibit version via lein-kibit: 0.1.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions