Docs: document `vg scan` runtime pin-file fallbacks and their precedence

Đang mở Phù hợp với người mới
#717 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc phần Runtime Pins của DOCS.md và thứ tự ưu tiên của trình quét được xác nhận trong test/node-runtime-pin.test.ts, test/python-runtime-pin.test.ts, test/python-pipfile-runtime.test.ts, test/php-config-platform-runtime.test.ts và test/go-toolchain-directive.test.ts. Thêm bảng ngôn ngữ với các nguồn theo thứ tự ưu tiên và những gì vg scan hiện không đọc, rồi liên kết đến bảng này từ khu vực hỗ trợ ngôn ngữ của scan. Hoàn thành khi bảng khớp với các kiểm thử đó, mô tả Rust dựa trên edition và không đưa thêm hành vi runtime.

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

Mô tả

documentation good first issue
  • Difficulty: small
  • Area: Docs
Problem

Runtime fallbacks are spread across scanners and individual closed issues, but DOCS.md has no single table a contributor can trust. The Platform Matrix section (around line 5882) mentions .nvmrc / .node-version and “.NET TargetFramework and SDK versions”, which is a different scanner and does not describe vg scan precedence.

People cannot see, in one place, that:

  • Node: engines.node > volta.node > .nvmrc > .node-version (and, if #4 is accepted, .tool-versions)
  • Python: requires-python / Poetry / python_requires / Pipfile [requires] > .python-version > .tool-versions
  • Ruby: the Gemfile / gemspec ruby line > .ruby-version > .tool-versions
  • Elixir: mix.exs elixir: > .tool-versions
  • PHP: require.php > config.platform.php (pin files only if #5 is accepted)
  • Go: toolchain > go (and go.env only if #7 is accepted)
  • Rust: currently the edition year, not rust-version (see issue 17)
  • Java: POM / Gradle toolchain first (pin files only if #6 is accepted)
Expected behaviour

Add a short “Runtime pins” subsection to DOCS.md (linked from the vg scan language-support area) with a table: language, sources in precedence order, and what is not read today. Do not promise fallbacks that are not in the code yet; if a companion PR implements one of the issues above, update the table in that same PR. Keep the wording consistent with the existing scanner docs voice.

Acceptance
  • The table matches the precedence already asserted in test/node-runtime-pin.test.ts, test/python-runtime-pin.test.ts, test/python-pipfile-runtime.test.ts, test/php-config-platform-runtime.test.ts, and test/go-toolchain-directive.test.ts.
  • Rust is described honestly as edition-based until issue 17 lands.
  • README or the scan section of DOCS.md links to the table.
  • No new runtime behaviour in a docs-only PR.

Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

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

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 vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

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.