Add more identifiers that are declared outside scope to parser output

Abierto
#519 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 6 días

@maxfisher-g ya está trabajando en esto.

Desde el 12/12/2022.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

enhancement static analysis

Currently, the parser tries to filter out identifier references and only report declarations. In particular, identifiers are parsed from variable, function, method and class declarations (and more), and this is good because it captures names that originate from the package.

On the other hand, names of variables that are simply written to or read from are ignored, and calls to functions or methods are ignored since they must have been defined elsewhere. The downside of this is that there might be telltale ('suspicious') function calls which are often associated with obfuscated code, such as exec.

So it might make sense to include some level of referenced identifiers in the parser output too, with some extra metadata that can be used to distinguish between what's been declared in the file vs what was simply referenced.

Lenguaje dominante
Go
Estrellas
925
Forks
75
Merge medio
4 d 2 h
PR fusionados (30 d)
3

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 ossf/package-analysis

Todos los issues de ossf/package-analysis

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.