github / github/codeql

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

未关闭
#3,561 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
false-positive Python
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
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 摘要。