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

Aperta Adatta ai principianti
#717 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
documentation

Direzione di ricerca

Leggi la sezione Runtime Pins di DOCS.md e la precedenza dello scanner stabilita 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 e test/go-toolchain-directive.test.ts. Aggiungi una tabella dei linguaggi con le fonti in ordine di precedenza e ciò che vg scan non legge oggi, quindi collegala dall’area di supporto dei linguaggi di scan. Il lavoro è completo quando la tabella corrisponde a quei test, descrive Rust come basato sulle edizioni e non introduce alcun comportamento di runtime.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
4
Fork
3
Merge medio
1g 22h
PR unite (30g)
76

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vibgrate/cli

Tutte le issue di vibgrate/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.