Skip to content

Commit

Permalink
Skip files in .gitignore. (#840)
Browse files Browse the repository at this point in the history
This is a common behavior of formatters (e.g Ruff and Black) as it's
arguably a more useful default behavior.

Closes #833.
  • Loading branch information
dundargoc authored Dec 30, 2023
1 parent 94375ed commit 1989671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The CLI tool will now only write files if the contents differ, and not modify if no change (#827)
- Fixed parentheses around a Luau compound type inside of a type table indexer being removed causing a syntax error (#828)
- Fixed function body parentheses being placed on multiple lines unnecessarily when there are no parameters (#830)
- Ignore files in .gitignore by default.

## [0.19.1] - 2023-11-15

Expand Down
2 changes: 1 addition & 1 deletion src/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ fn format(opt: opt::Opt) -> Result<i32> {
}

walker_builder
.standard_filters(false)
.standard_filters(true)
.hidden(!opt.allow_hidden)
.parents(true)
.add_custom_ignore_filename(".styluaignore");
Expand Down

0 comments on commit 1989671

Please sign in to comment.