Skip to content

Commit

Permalink
Support --respect-ignores (#765)
Browse files Browse the repository at this point in the history
* Support `--respect-ignores`

* Update readme and changelog

* Add tests

* Update changelog
  • Loading branch information
JohnnyMorganz authored Nov 11, 2023
1 parent b5efedf commit 1fb976a
Show file tree
Hide file tree
Showing 6 changed files with 344 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Added flag `--respect-ignores`. By default, files explicitly passed to stylua (e.g. `stylua foo.lua`) will always be formatted, regardless of whether the file is ignored. Enabling this flag will consider `.styluaignore` or glob matches before formatting the file.
- Note: for backwards compatibility reasons, formatting via stdin always respects ignores. This behaviour will change in the next major release

## [0.18.2] - 2023-09-10

### Fixed
Expand Down
214 changes: 201 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ wasm-bindgen = { version = "0.2.81", optional = true }
criterion = "0.4.0"
insta = { version = "1.34.0", features = ["glob"] }
assert_cmd = "2.0.12"
assert_fs = "1.0.13"

[[bench]]
name = "date"
Expand Down
Loading

0 comments on commit 1fb976a

Please sign in to comment.