github / github/codeql

LGTM.com - false positive with relative import

Ouverte
#7,978 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
false-positive not security Python
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

**Description of the false positive**

LGTM is complaining about `logging` being imported both with plain `import` and with `import ... from`, but the latter is only used for a relative import of a module called `logging`. The standard module of the same name is only imported plainly, on the other hand.

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

https://lgtm.com/projects/g/abrt/retrace-server/snapshot/228913a00605c01b7b85f81f94b368871a429dd8/files/src/retrace/retrace_worker.py?sort=name&dir=ASC&mode=heatmap#xba03ebfb24472c08:1

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.