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

Abierto Apto para principiantes
#717 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Lee la sección Runtime Pins de DOCS.md y la precedencia del escáner establecida en 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 y test/go-toolchain-directive.test.ts. Añade una tabla de lenguajes con las fuentes en orden de precedencia y lo que vg scan no lee actualmente, y enlázala desde el área de compatibilidad de lenguajes de scan. Se considera terminado cuando la tabla coincide con esas pruebas, describe Rust como basado en ediciones y no introduce ningún comportamiento de ejecución.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
3
Merge medio
1 d 22 h
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de vibgrate/cli

Todos los issues de vibgrate/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.