Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Mar 9, 2023
1 parent b9589ad commit b6a23c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
16 changes: 8 additions & 8 deletions crates/rome_cli/tests/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,15 +862,15 @@ fn fs_error_unknown() {
//
// ├── rome.json
// ├── hidden_nested
// │   └── test
// │   └── symlink_testcase1_2 -> hidden_testcase1
// │ └── test
// │ └── symlink_testcase1_2 -> hidden_testcase1
// ├── hidden_testcase1
// │   └── test
// │   └── test.js // ok
// │ └── test
// │ └── test.js // ok
// ├── hidden_testcase2
// │   ├── test1.ts // ignored
// │   ├── test2.ts // ignored
// │   └── test.js // ok
// │ ├── test1.ts // ignored
// │ ├── test2.ts // ignored
// │ └── test.js // ok
// └── src
// ├── symlink_testcase1_1 -> hidden_nested
// └── symlink_testcase2 -> hidden_testcase2
Expand Down Expand Up @@ -951,7 +951,7 @@ fn fs_files_ignore_symlink() {
OsString::from("check"),
OsString::from("--config-path"),
OsString::from(root_path.clone()),
OsString::from("--apply"),
OsString::from("--apply-unsafe"),
OsString::from(src_path),
]),
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
---
source: crates/rome_cli/tests/snap_test.rs
assertion_line: 346
expression: content
---
# Emitted Messages

```block
Skipped 4 suggested fixes.
If you wish to apply the suggested (unsafe) fixes, use the command rome check --apply-unsafe
```

```block
Fixed 2 file(s) in <TIME>
```
Expand Down
1 change: 0 additions & 1 deletion crates/rome_service/src/file_handlers/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ fn fix_all(params: FixAllParams) -> Result<FixFileResult, WorkspaceError> {
let (action, _) = analyze(&tree, filter, &analyzer_options, |signal| {
let current_diagnostic = signal.diagnostic();

// all rules have at least an action, which is he suppression
if let Some(diagnostic) = current_diagnostic.as_ref() {
if is_diagnostic_error(diagnostic, params.rules) {
errors += 1;
Expand Down

0 comments on commit b6a23c9

Please sign in to comment.