Skip to content

.styluaignore isn't respected when comparing a single file #377

@stopdropandrew

Description

@stopdropandrew

For instance,

If I have a .styluaignore file that looks like:
path/

This will check the file:
stylua -c path/to/file.lua

But this would not:
stylua -c .

As an alternative, I can do
stylua -g path/to/file.lua -- .
But then I'm doing a full directory scan on each call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions