Problem: .styluaignore does not ignore folders or directories like .gitignore, .rgignore, etc. do. Instead, full globbing patterns (*.lua or **/*.lua) would be needed to ignore all files under a directory.
EDIT: This seems to be the case only when used with --respect-ignores <pattern>.
Example
(Tested with stylua 0.19.1, which already includes #765)
Let's say we have src/foo.lua and build/foo.lua in the project root (with .styluaignore).
Current behavior
With the following .styluaignore:
$ stylua --check --respect-ignores build/foo.lua would not ignore build/foo.lua.
Expected behavior
build/foo.lua should be ignored.
Current behavior (2)
With the following .styluaignore:
$ stylua --check --respect-ignores build/foo.lua does ignore build/foo.lua. This behavior is consistent with .gitignore, etc.
Problem:
.styluaignoredoes not ignore folders or directories like.gitignore,.rgignore, etc. do. Instead, full globbing patterns (*.luaor**/*.lua) would be needed to ignore all files under a directory.EDIT: This seems to be the case only when used with
--respect-ignores <pattern>.Example
(Tested with stylua 0.19.1, which already includes #765)
Let's say we have
src/foo.luaandbuild/foo.luain the project root (with.styluaignore).Current behavior
With the following
.styluaignore:$ stylua --check --respect-ignores build/foo.luawould not ignorebuild/foo.lua.Expected behavior
build/foo.luashould be ignored.Current behavior (2)
With the following
.styluaignore:$ stylua --check --respect-ignores build/foo.luadoes ignorebuild/foo.lua. This behavior is consistent with.gitignore, etc.