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

未关闭 适合新手
#717 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
documentation

调研方向

阅读 DOCS.md 的 Runtime Pins 部分,以及 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 和 test/go-toolchain-directive.test.ts 中断言的扫描器优先级。添加一张语言表,按优先级列出来源以及 vg scan 当前不会读取的内容,并从 scan 的语言支持区域链接到该表。完成标准是表格与这些测试相符,将 Rust 描述为基于 edition,并且不引入运行时行为。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
4
派生
3
平均合并
1 天 22 小时
30 天内合并 PR
76

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vibgrate/cli 的其他 Issue

查看 vibgrate/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。