This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
283 additions
and
44 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
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
56 changes: 56 additions & 0 deletions
56
crates/rome_cli/tests/snapshots/main_commands_check/print_verbose.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,56 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `check.js` | ||
|
||
```js | ||
for(;true;); | ||
|
||
``` | ||
|
||
# Termination Message | ||
|
||
```block | ||
some errors were emitted while running checks | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
check.js:1:1 lint/correctness/useWhile FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Use while loops instead of for loops. | ||
> 1 │ for(;true;); | ||
│ ^^^^^^^^^^^ | ||
2 │ | ||
i Suggested fix: Use a while loop | ||
1 │ - for(;true;); | ||
1 │ + while·(true); | ||
2 2 │ | ||
``` | ||
|
||
```block | ||
check.js:1:1 lint/style/useBlockStatements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Block statements are preferred in this position. | ||
> 1 │ for(;true;); | ||
│ ^^^^^^^^^^^^ | ||
2 │ | ||
i Suggested fix: Wrap the statement with a `JsBlockStatement` | ||
1 │ - for(;true;); | ||
1 │ + for(;true;)·{} | ||
2 2 │ | ||
``` | ||
|
||
|
56 changes: 56 additions & 0 deletions
56
crates/rome_cli/tests/snapshots/main_commands_ci/print_verbose.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,56 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `ci.js` | ||
|
||
```js | ||
for(;true;); | ||
|
||
``` | ||
|
||
# Termination Message | ||
|
||
```block | ||
some errors were emitted while running checks | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
ci.js:1:1 lint/correctness/useWhile FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Use while loops instead of for loops. | ||
> 1 │ for(;true;); | ||
│ ^^^^^^^^^^^ | ||
2 │ | ||
i Suggested fix: Use a while loop | ||
1 │ - for(;true;); | ||
1 │ + while·(true); | ||
2 2 │ | ||
``` | ||
|
||
```block | ||
ci.js:1:1 lint/style/useBlockStatements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Block statements are preferred in this position. | ||
> 1 │ for(;true;); | ||
│ ^^^^^^^^^^^^ | ||
2 │ | ||
i Suggested fix: Wrap the statement with a `JsBlockStatement` | ||
1 │ - for(;true;); | ||
1 │ + for(;true;)·{} | ||
2 2 │ | ||
``` | ||
|
||
|
25 changes: 25 additions & 0 deletions
25
crates/rome_cli/tests/snapshots/main_commands_format/print_verbose.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,25 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `format.js` | ||
|
||
```js | ||
statement( ) | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
format.js format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
i Formatter would have printed the following content: | ||
1 │ - ··statement(··)·· | ||
1 │ + statement(); | ||
2 │ + | ||
``` | ||
|
||
|
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
Oops, something went wrong.