github / github/codeql

LGTM.com - false positive: py/procedure-return-value-used

オープン
#3,561 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
false-positive Python
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

I'm not sure how the analyzer is even _finding_ the function whose return value it insists is being used, from a test suite file that's not referenced in any way from the flagged code file.

Obviously this code uses the return value of *a* function. In fact, its return value _may_ be `None`. But there's no way to tell that it's _always_ `None`, because the function called is dynamically determined.

https://lgtm.com/projects/g/sopel-irc/sopel/snapshot/b921e6fe0662d3f24cb468c0008465b037682294/files/sopel/plugins/rules.py?sort=name&dir=ASC&mode=heatmap#x5dd3ccc00f1e0e0:1

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。