Repository navigation
fix: 掃描修正、scan --fail-under 與 JSON-LD 結構診斷(移植 10/23 分支) - #67
Merged
Merged
Conversation
取自 claude/geo-fix-20261023(a2cb8b1)與 claude/geo-jsonld-20261023(418d209), 保留 main 的 pre-commit hook 警告行為與 JSON-LD 解析警告合約: - 目錄掃描不再吞掉錯誤;排除 Markdown fenced code;非字串 title 回退; robots 參數含空白不誤判;Action 超大門檻先擋下、不再整數溢位。 - 新增 scan --fail-under;共用 JSON-LD 解析並附行號、區塊與路徑診斷。 - 嚴重度:malformed JSON 與缺少/空的 @context、@type 為 warning;非物件 root 與型別錯誤的值為 critical;audit-build 新診斷為 WARNING。 測試 32 檔 583 passed,typecheck、build、npm run check 通過。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
把 10/23 未驗收分支
claude/geo-fix-20261023、claude/geo-jsonld-20261023中仍需要的部分移植到目前 main,並保留 main 現有的 pre-commit hook 與 JSON-LD 警告合約。修正
title不是字串(例如2026)時回退,不再讓 audit 當掉。max-image-preview: none)不再誤判為限制索引。min-score超大輸入先擋下,不再整數溢位後以 0 退出。新增
scan --fail-under <score>:分數門檻閘門,完整報告仍輸出到 stdout。刻意沒帶過來
嚴重度合約
scan/audit:malformed JSON 與缺少或空的@context/@type為 warning;非物件 root、graph 項目與型別錯誤的值為 critical。audit-build:malformed JSON 與無效 root 維持 FAIL,其他結構診斷為 WARNING。已寫入 CHANGELOG 與 docs/methodology.md。
驗證
npx vitest run:32 個檔案、583 項全過(main 為 451 項)。npx tsc --noEmit、npm run build、npm run check通過。🤖 Generated with Claude Code