Skip to content

Linter: CLI processes other files when I pass it a directory #1045

Description

@janko

In version 0.8.0, calling yarn herb-lint app/views processed only the *.html.erb files and nothing else (I don't have .herb.yml).

In the latest version, however, the linter processes files in other directories as well, (e.g. public/). This seems to be a regression in version 0.8.4.

I can work around it by doing yarn herb-lint app/views/**/*.html.erb, which I believe zsh already expands in the shell, so the linter receives a direct list of files. However, it would be nice if I could also just pass the directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions