atom-community / atom-community/ide-python

pyflakes doesn't detect unused instance variables

未关闭
#188 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
238
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Atom: 1.41.0
Electron: 4.2.7
Chrome: 69.0.3497.128
Node: v10.11.0
atom-ide-ui: 0.13.0
ide-python: 1.5.0
python-language-server: 0.31.0
pyflakes: 2.1.1

This is detected as unused:
`test = ""`

This not -.-
`self.test = ""`
![pyflakes_bug](https://user-images.githubusercontent.com/22881590/69043005-82d5b280-09f2-11ea-8e44-9be848ea9747.png)
![pyflakes_bug2](https://user-images.githubusercontent.com/22881590/69043126-bca6b900-09f2-11ea-9406-c227fe204479.png)

贡献指南

打开贡献指南

调研方向

使用 issue 中的两个 Python 代码片段以及列出的 pyflakes 2.1.1 和 python-language-server 版本重现该报告。然后跟踪 ide-python 如何调用并报告 pyflakes 诊断;完成标准是能够一致地检测到未使用的实例变量,同时不会导致局部变量案例出现回归。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。