You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately it does not get ignored if matched in a glob pattern:
$ stylua --respect-ignores -g '*.lua'.
I would have expected that scenario to skip the file as well, but it does not. In my case this causes problems in several projects and I have to manually generate lists of files with other tooling and pass them as arguments instead of being able to use glob patterns.
The text was updated successfully, but these errors were encountered:
First, glob overrides are checked. If a path matches a glob override, then matching stops. The path is then only skipped if the glob that matched the path is an ignore glob. (An override glob is a whitelist glob unless it starts with a !, in which case it is an ignore glob.)
We should probably not use the glob support in walkerbuilder and do our own matching instead
If I add a file
test.lua
to my.styluaignore
, it will correctly get ignored in both of these usages:Unfortunately it does not get ignored if matched in a glob pattern:
$ stylua --respect-ignores -g '*.lua' .
I would have expected that scenario to skip the file as well, but it does not. In my case this causes problems in several projects and I have to manually generate lists of files with other tooling and pass them as arguments instead of being able to use glob patterns.
The text was updated successfully, but these errors were encountered: