A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/JohnnyMorganz/StyLua/issues/845 below:

does not correctly ignore folders without the globbing pattern · Issue #845 · JohnnyMorganz/StyLua · GitHub

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4