-
-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: don't check dir and symlink against include (#1995)
- Loading branch information
Showing
9 changed files
with
420 additions
and
16 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
11 changes: 11 additions & 0 deletions
11
.../biome_cli/tests/snapshots/main_commands_lint/ignore_file_in_subdir_in_symlinked_dir.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,11 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
# Emitted Messages | ||
|
||
```block | ||
Checked 1 file in <TIME>. No fixes needed. | ||
``` | ||
|
||
|
71 changes: 71 additions & 0 deletions
71
crates/biome_cli/tests/snapshots/main_commands_lint/include_files_in_subdir.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,71 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
# Termination Message | ||
|
||
```block | ||
lint ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Some errors were emitted while running checks. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
<TEMP_DIR>/include_files_in_subdir/subdir/file.js:2:1 lint/suspicious/noDebugger FIXABLE ━━━━━━━━━━━━━━━━━━━━ | ||
× This is an unexpected use of the debugger statement. | ||
1 │ let a = 4; | ||
> 2 │ debugger; | ||
│ ^^^^^^^^^ | ||
3 │ console.log(a); | ||
4 │ | ||
i Unsafe fix: Remove debugger statement | ||
1 1 │ let a = 4; | ||
2 │ - debugger; | ||
3 2 │ console.log(a); | ||
4 3 │ | ||
``` | ||
|
||
```block | ||
<TEMP_DIR>/include_files_in_subdir/subdir/file.js:1:1 lint/style/useConst FIXABLE ━━━━━━━━━━━━━━━━━━━━ | ||
× This let declares a variable which is never re-assigned. | ||
> 1 │ let a = 4; | ||
│ ^^^ | ||
2 │ debugger; | ||
3 │ console.log(a); | ||
i 'a' is never re-assigned. | ||
> 1 │ let a = 4; | ||
│ ^ | ||
2 │ debugger; | ||
3 │ console.log(a); | ||
i Safe fix: Use const instead. | ||
1 │ - let·a·=·4; | ||
1 │ + const·a·=·4; | ||
2 2 │ debugger; | ||
3 3 │ console.log(a); | ||
``` | ||
|
||
```block | ||
Checked 2 files in <TIME>. No fixes needed. | ||
Found 3 errors. | ||
``` | ||
|
||
|
71 changes: 71 additions & 0 deletions
71
crates/biome_cli/tests/snapshots/main_commands_lint/include_files_in_symlinked_subdir.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,71 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
# Termination Message | ||
|
||
```block | ||
lint ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Some errors were emitted while running checks. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
<TEMP_DIR>/include_files_in_symlinked_subdir/symlinked/file.js:2:1 lint/suspicious/noDebugger FIXABLE ━━━━━━━━━━━━━━━━━━━━ | ||
× This is an unexpected use of the debugger statement. | ||
1 │ let a = 4; | ||
> 2 │ debugger; | ||
│ ^^^^^^^^^ | ||
3 │ console.log(a); | ||
4 │ | ||
i Unsafe fix: Remove debugger statement | ||
1 1 │ let a = 4; | ||
2 │ - debugger; | ||
3 2 │ console.log(a); | ||
4 3 │ | ||
``` | ||
|
||
```block | ||
<TEMP_DIR>/include_files_in_symlinked_subdir/symlinked/file.js:1:1 lint/style/useConst FIXABLE ━━━━━━━━━━━━━━━━━━━━ | ||
× This let declares a variable which is never re-assigned. | ||
> 1 │ let a = 4; | ||
│ ^^^ | ||
2 │ debugger; | ||
3 │ console.log(a); | ||
i 'a' is never re-assigned. | ||
> 1 │ let a = 4; | ||
│ ^ | ||
2 │ debugger; | ||
3 │ console.log(a); | ||
i Safe fix: Use const instead. | ||
1 │ - let·a·=·4; | ||
1 │ + const·a·=·4; | ||
2 2 │ debugger; | ||
3 3 │ console.log(a); | ||
``` | ||
|
||
```block | ||
Checked 2 files in <TIME>. No fixes needed. | ||
Found 3 errors. | ||
``` | ||
|
||
|
Oops, something went wrong.