docs checks: close the remaining fail-open cases

オープン
#52 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, markdown

調査の方向性

Read the prior work in #43 and inspect internal/docgen/reasons.go and internal/docgen/routes.go, then review the docs checks for handshake headers, prose names, Mermaid fences, and picture source verification. Start by identifying the existing checks and tests for each case; done means the listed stale documentation cases are detected or the image check verifies current source.html without relying on host font rendering.

索引モデルが issue の本文から書いたものです。

説明

#43 made the docs checks fail closed on the cases its reviews found. These cases still pass on stale docs, and are left for a follow-up:

  • Reasons: a function that returns an untyped string literal as a GiveUpReason or CallbackReason, or assigns one to a struct field, is not seen by internal/docgen/reasons.go. Catching it needs go/types.
  • Routes: a router method outside the set docgen reads (for example MethodFunc) is not seen by internal/docgen/routes.go.
  • Handshake headers: a handshake answer whose headers exceed 16 KiB maps to connection_refused; docs/webhooks.md does not say so.
  • Names in prose: plain-text paths (PUT /mcp) and names in prose (ci.check_requested, wait_for_github_event) are not checked against the code.
  • Mermaid: the render test reads only exact ```mermaid fences and skips nested docs/ folders.
  • Pictures: the check proves the PNGs match SOURCE_SHA256, not that they were rendered from the current source.html (a host's fonts change the bytes, so CI cannot re-render and compare).

Refs #43


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

主要言語
Go
スター
1
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/faucet のほかの issue

coder/faucet の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。