github / github/codeql

LGTM.com - false positive - unused import needed for API

未關閉
#9,651 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
false-positive Python
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

**Description of the false positive**

`Unused import` raised for imports that are carried out just to build the API-structure.

**URL to the alert on the project page on LGTM.com**

- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/_lazy_signals.py?sort=name&dir=ASC&mode=heatmap#xb0feefedc9751814:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/drawing/widgets.py#x7c61e9e86d08ba4e:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/io_plugins/hspy.py#xfe443ac8dbb99926:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/misc/machine_learning/import_sklearn.py#x10662ea808f30f82:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/samfire_utils/fit_tests.py#x5f531cee568f309c:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/datasets/example_signals.py#x1c59a584f5028d6a:1

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。