-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize all line endings to Unix on the way in (#78)
* Normalize line endings to Unix everywhere on the way in * Turn multiline raw string test back on * Explicitly add a multiline string test * Add CRLF formatter test
- Loading branch information
1 parent
007008f
commit 5d5a2db
Showing
23 changed files
with
302 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
* text=auto eol=lf | ||
|
||
# Windows specific test files where we need CRLF endings | ||
crates/air_r_formatter/tests/specs/r/crlf/*.R text eol=crlf |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
[package] | ||
authors.workspace = true | ||
categories.workspace = true | ||
description = "Air's formatter test shared infrastructure" | ||
edition.workspace = true | ||
homepage.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
name = "air_formatter_test" | ||
publish = false | ||
repository.workspace = true | ||
authors.workspace = true | ||
categories.workspace = true | ||
description = "Air's formatter test shared infrastructure" | ||
edition.workspace = true | ||
homepage.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
name = "air_formatter_test" | ||
publish = false | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
version = "0.0.0" | ||
version = "0.0.0" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
biome_console = { workspace = true } | ||
biome_diagnostics = { workspace = true } | ||
biome_formatter = { workspace = true } | ||
biome_parser = { workspace = true } | ||
biome_rowan = { workspace = true } | ||
insta = { workspace = true, features = ["glob"] } | ||
serde = { workspace = true, features = ["derive"] } | ||
similar = "2.6.0" | ||
similar-asserts = "1.6.0" | ||
biome_console = { workspace = true } | ||
biome_diagnostics = { workspace = true } | ||
biome_formatter = { workspace = true } | ||
biome_parser = { workspace = true } | ||
biome_rowan = { workspace = true } | ||
insta = { workspace = true, features = ["glob"] } | ||
line_ending = { workspace = true } | ||
serde = { workspace = true, features = ["derive"] } | ||
similar = "2.6.0" | ||
similar-asserts = "1.6.0" | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"multiline | ||
string" |
30 changes: 30 additions & 0 deletions
30
crates/air_r_formatter/tests/specs/r/crlf/string_value.R.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: crates/air_formatter_test/src/snapshot_builder.rs | ||
info: r/crlf/string_value.R | ||
--- | ||
# Input | ||
|
||
```R | ||
"multiline | ||
string" | ||
``` | ||
|
||
|
||
============================= | ||
|
||
# Outputs | ||
|
||
## Output 1 | ||
|
||
----- | ||
Indent style: Tab | ||
Indent width: 2 | ||
Line ending: LF | ||
Line width: 80 | ||
----- | ||
|
||
```R | ||
"multiline | ||
string" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,7 @@ | |
'hi there!' | ||
'\'' | ||
"'" | ||
"multiline | ||
string" | ||
r"("some raw string | ||
business")" |
Oops, something went wrong.