Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crates/oxc_linter/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,11 @@ impl Runtime {
// source code after each fix.
let mut fix_offset: i32 = 0;

for source in sources {
let allocator = Allocator::default();
let mut allocator = Allocator::default();
for (i, source) in sources.into_iter().enumerate() {
if i >= 1 {
allocator.reset();
}
let mut messages = self.process_source(
path,
&allocator,
Expand Down