-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: experimental support for TOML v1.1
- Loading branch information
Showing
28 changed files
with
103 additions
and
26 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
42 changes: 42 additions & 0 deletions
42
tests/fixtures/rules/indent/invalid/default/inline-table-sample01-1.1-errors.json
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,42 @@ | ||
[ | ||
{ | ||
"message": "Expected indentation of 2 spaces but found 0 spaces.", | ||
"line": 7, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 4 spaces but found 0 spaces.", | ||
"line": 8, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 4 spaces but found 0 spaces.", | ||
"line": 9, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 2 spaces but found 0 spaces.", | ||
"line": 10, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 2 spaces but found 0 spaces.", | ||
"line": 11, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 4 spaces but found 0 spaces.", | ||
"line": 12, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 4 spaces but found 0 spaces.", | ||
"line": 13, | ||
"column": 1 | ||
}, | ||
{ | ||
"message": "Expected indentation of 2 spaces but found 0 spaces.", | ||
"line": 14, | ||
"column": 1 | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
tests/fixtures/rules/indent/invalid/default/inline-table-sample01-1.1-input.toml
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,15 @@ | ||
# {} | ||
# https://toml.io/en/v1.1.0#inline-table | ||
name = { first = "Tom", last = "Preston-Werner" } | ||
point = {x=1, y=2} | ||
animal = { type.name = "pug" } | ||
contact = { | ||
personal = { | ||
name = "Donald Duck", | ||
email = "donald@duckburg.com", | ||
}, | ||
work = { | ||
name = "Coin cleaner", | ||
email = "donald@ScroogeCorp.com", | ||
}, | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/fixtures/rules/indent/invalid/default/inline-table-sample01-1.1-output.toml
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,15 @@ | ||
# indent/invalid/default/inline-table-sample01-1.1-input.toml | ||
# https://toml.io/en/v1.1.0#inline-table | ||
name = { first = "Tom", last = "Preston-Werner" } | ||
point = {x=1, y=2} | ||
animal = { type.name = "pug" } | ||
contact = { | ||
personal = { | ||
name = "Donald Duck", | ||
email = "donald@duckburg.com", | ||
}, | ||
work = { | ||
name = "Coin cleaner", | ||
email = "donald@ScroogeCorp.com", | ||
}, | ||
} |
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
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
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
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
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
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