Skip to content

elvis rock <file(s)> lead to function_clause crash in elvis_file:find_files #605

@vijay622

Description

@vijay622

elvis_core:rock/2 expecting Files to be either undefined or [string()], but elvis command line script elvis.erl converts commands (including Files after rock command) to [atom()].

This eventually lead to the function call elvis_file:find_files(Globs) in elvis_core app. Since Globs are list of atoms, filelib:wildcard/1 takes atom as an argument unforunately in this use case, and this will lead to function_clause crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions