github / github/codeql

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

Đang mở
#9,987 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
acknowledged false-positive Python
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.