github / github/codeql

LGTM.com - false positive for py/uninitialized-local-variable

Abierto
#9,987 3 comentarios 0 reacciones 0 asignados Ver en GitHub
acknowledged false-positive Python
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

**Description of the false positive**

The error says that a variable may be used before it is initialized but the variable is defined on the line above. I cannot see a way that it would not be initialized.

**URL to the alert on the project page on LGTM.com**

It does not appear in LGTM.com (seems the `py/uninitialized-local-variable` alert is [hidden by default](https://lgtm.com/rules/10030097/)) but on GitHub, using the CodeQL action, it is https://github.com/rparini/cxroots/security/code-scanning/28 Apologies if this is the wrong place for this report.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.