mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
7e75a5aab6
Follow-on after #26173 and #26223. Expand the test coverage added in both PRs to cover more cases.
4.1 KiB
4.1 KiB
Exit code
1
stdout
x fixes-plugin(fixes): Replace "a" with "daddy"
,-[files/bom_remove.js:1:4]
1 | a = c;
: ^
2 | d = b
`----
x fixes-plugin(fixes): Replace "a" with "daddy"
,-[files/bom_remove2.js:1:4]
1 | a = c;
: ^
2 | d = b
`----
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_end_negative.js
| Invalid range: 0..0
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_end_negative.js
| Invalid range: 0..0
x fixes-plugin(fixes): end negative
,-[files/range_end_negative.js:1:5]
1 | let x;
: ^
`----
x fixes-plugin(fixes): end negative multiple
,-[files/range_end_negative.js:1:5]
1 | let x;
: ^
`----
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_end_out_of_bounds.js
| Invalid range: 7..7
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_end_out_of_bounds.js
| Invalid range: 7..7
x fixes-plugin(fixes): end out of bounds
,-[files/range_end_out_of_bounds.js:1:5]
1 | let x;
: ^
`----
x fixes-plugin(fixes): end out of bounds multiple
,-[files/range_end_out_of_bounds.js:1:5]
1 | let x;
: ^
`----
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_end_too_large.js
| Invalid range: 0..0
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_end_too_large.js
| Invalid range: 0..0
x fixes-plugin(fixes): end too large
,-[files/range_end_too_large.js:1:5]
1 | let x;
: ^
`----
x fixes-plugin(fixes): end too large multiple
,-[files/range_end_too_large.js:1:5]
1 | let x;
: ^
`----
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_start_after_end.js
| Negative range is invalid: Span { start: 3, end: 2 }
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_start_after_end.js
| Negative range is invalid: Span { start: 3, end: 2 }
x fixes-plugin(fixes): start after end
,-[files/range_start_after_end.js:1:5]
1 | let x;
: ^
`----
x fixes-plugin(fixes): start after end multiple
,-[files/range_start_after_end.js:1:5]
1 | let x;
: ^
`----
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_start_negative.js
| Invalid range: 0..0
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_start_negative.js
| Invalid range: 0..0
x fixes-plugin(fixes): start negative
,-[files/range_start_negative.js:1:5]
1 | let x;
: ^
`----
x fixes-plugin(fixes): start negative multiple
,-[files/range_start_negative.js:1:5]
1 | let x;
: ^
`----
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_start_too_large.js
| Invalid range: 0..0
x Plugin `fixes-plugin/fixes` returned invalid fixes.
| File path: <fixture>/files/range_start_too_large.js
| Invalid range: 0..0
x fixes-plugin(fixes): start too large
,-[files/range_start_too_large.js:1:5]
1 | let x;
: ^
`----
x fixes-plugin(fixes): start too large multiple
,-[files/range_start_too_large.js:1:5]
1 | let x;
: ^
`----
Found 0 warnings and 26 errors.
Finished in Xms on 12 files with 1 rules using X threads.
stderr
File altered: files/bom.js
daddy = magic;
rage = abacus
File altered: files/bom_and_unicode.js
daddy = magic;
// 😀🤪😆😎🤮
rage = abacus+"£"
File altered: files/bom_remove.js
a = magic;
damned = abacus
File altered: files/bom_remove2.js
a = magic;
damned = abacus
File altered: files/index.js
let daddy = 1;
let abacus = 2;
let magic = 3;
let damned = 4;
let elephant = 5;
let feck = 6;
let rage = 7;
let dangermouse = 8;
let granular = 9;
let cowabunga = 10;
File altered: files/unicode.js
daddy = magic;
// 😀🤪😆😎🤮
rage = abacus