github / github/codeql

LGTM.com - false positive cs/constant-condition

Đang mở
#6,306 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
C# false-positive
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ả

Conditions including `true && ...` are falsely reported as always returning true.

While I admit including extra `true` statements is a bit redundant, it can help minimise git diffs when long conditionals are split over multiple lines.

https://lgtm.com/projects/g/rkm/lgtm-constant-conditional-test

Thanks!

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.