aboutcode-org / aboutcode-org/scancode-toolkit

Inconsistent URL detection

未關閉
#4,243 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

### Description

Scanning for URLs does not seem to be consistent and I sometimes see expected and sometimes unexpected results.

Let's take the following files as an example:

* https://github.com/RDFLib/rdflib/blob/9f76b0fc7b9d6a01cc2e08cad29ac54acb60c026/rdflib/plugins/serializers/trig.py does not report http://www.w3.org/TR/trig/
* https://github.com/RDFLib/rdflib/blob/9f76b0fc7b9d6a01cc2e08cad29ac54acb60c026/rdflib/plugins/serializers/trix.py reports http://www.w3.org/2004/03/trix/trix-1/, but not http://www.w3.org/XML/1998/namespace
* https://github.com/RDFLib/rdflib/blob/9f76b0fc7b9d6a01cc2e08cad29ac54acb60c026/rdflib/plugins/serializers/turtle.py reports http://www.w3.org/TeamSubmission/turtle/ correctly.

### How To Reproduce

Run `scancode.api.get_urls(path)` on the corresponding files.

### System configuration

> For bug reports, it really helps us to know:

* What OS are you running on? Linux
* What version of scancode-toolkit was used to generate the scan file? 32.3.3
* What installation method was used to install/run scancode? pip

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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