docs checks: close the remaining fail-open cases

Đang mở
#52 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, markdown
Lĩnh vực
backend, documentation, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

#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

Ngôn ngữ chính
Go
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của coder/faucet

Tất cả issue của coder/faucet

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.