chore: format evaluator fix commits and suppress intentional DAP placeholder lint

This commit is contained in:
can1357
2026-07-22 21:16:38 +02:00
parent 1b7dc1c3f6
commit 8a9aa0342d
3 changed files with 4 additions and 4 deletions
+1 -3
View File
@@ -445,9 +445,7 @@ async function git(cwd: string, args: readonly string[], options: CommandOptions
if (isEnoent(err)) {
// A deleted/nonexistent cwd also surfaces as a spawn ENOENT; only blame
// the binary when the working directory actually exists.
const stderr = fs.existsSync(cwd)
? "git is not installed."
: `working directory does not exist: ${cwd}`;
const stderr = fs.existsSync(cwd) ? "git is not installed." : `working directory does not exist: ${cwd}`;
return { exitCode: GIT_SPAWN_ENOENT_EXIT_CODE, stdout: "", stderr };
}
throw err;
@@ -538,6 +538,7 @@ await Bun.sleep(60_000);
await fs.writeFile(adapterPath, source);
const adapter: DapResolvedAdapter = {
...TCP_ADAPTER_BASE,
// biome-ignore lint/suspicious/noTemplateCurlyInString: literal DAP `${port}` placeholder substituted by the adapter launcher
args: [adapterPath, "${port}", "127.0.0.1"],
};
try {
+2 -1
View File
@@ -187,7 +187,8 @@ describe("fixChangelogContent", () => {
});
it("keeps bullets the rewrite preserved verbatim instead of dropping them as consumed", () => {
const keptItem = "- Fixed crash when opening the empty settings panel ([#1234](https://github.com/can1357/oh-my-pi/issues/1234)).";
const keptItem =
"- Fixed crash when opening the empty settings panel ([#1234](https://github.com/can1357/oh-my-pi/issues/1234)).";
const document = parseChangelog(
["# Changelog", "", "## [Unreleased]", "", "### Fixed", "", keptItem, ""].join("\n"),
);