perf(mid): resolve no-await-in-loop in five feature groups (#5774)

Clears the no-await-in-loop diagnostics in analysis, platform, project-tree, http-client and debugger and turns the rule on there. Independent directory walks (Reformat/cleanup targets, batches of 8; the result is sorted as before), Spring config reads (parsed in candidate order, so the first file with a value still wins) and Python package __init__.py creation now run in parallel; every other loop is intentionally sequential and carries a documented suppression.

Co-authored-by: akbar1214 <[email protected]>
Цей коміт міститься в:
Akbar Husain authored and GitHub committed 2026-11-25 14:17:57 +08:00
1 джерело 9ecef0ef0f
коміт 4a18d4d205
40 files changed
+142 -21

No files matched your search

+3
Переглянути файл
@@ -154,6 +154,7 @@ describe("Java debugging (java-debug through jdtls)", () => {
it("lets java-debug shorten a classpath too long for the OS, as Run does", async () => {
for (const how of ["jarmanifest", "argfile"]) {
shortenCommandLine = how;
// oxlint-disable-next-line no-await-in-loop -- shortenCommandLine is shared module state set per iteration; the assertion must follow the launch that used it
const l = await javaLaunchConfig(app, "/p");
expect(JSON.parse(l.extraJson!).shortenCommandLine).toBe(how);
}
@@ -229,6 +230,7 @@ it.each(["sibling", "/outside/modules"])("debugs from %s with the main class mod
kotlinFiles = false;
for (const module of ["api", undefined]) {
invoked.length = 0;
// oxlint-disable-next-line no-await-in-loop -- invoked is a shared call log reset each iteration; the assertions must follow the matching launch
const launch = await javaLaunchConfig({ ...app, module, cwd }, "/p");
expect(invoked).toContainEqual(["javaResolveLaunch", ["api", false, "automatic", expect.any(Number)]]);
expect(invoked).toContainEqual(["javaDebugServer", ["api"]]);
@@ -281,6 +283,7 @@ describe("the debugger for a build tool's JVMs", () => {
try {
for (const missing of [[], ["kotlin-debug-adapter"], ["kotlin-lsp"]]) {
missingTools = missing;
// oxlint-disable-next-line no-await-in-loop -- missingTools is shared state changed per iteration; each assertion must check the matching configuration
expect(await jvmAttachDebuggerReady("app", "/p", retry)).toBe(true);
}
missingTools = ["kotlin-debug-adapter", "kotlin-lsp"];