aboutcode-org / aboutcode-org/scancode.io

Inconsistent file metadata value

未关闭
#2,172 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
215
派生
203
平均合并
4 天 8 小时
30 天内合并 PR
6

描述

For the `.kotlin_module` file, I believe this is a binary file, so `is_text` should be set to *False* and `is_binary` to *True*, which is correct in SCTK.
```
"files": [
{
"path": "wisp-logging.kotlin_module",
"type": "file",
"name": "wisp-logging.kotlin_module",
"base_name": "wisp-logging",
"extension": ".kotlin_module",
"size": 51,
"date": "1980-01-31",
"sha1": "d42d499d7a0dc593b505e40e5cf88c134ba369cd",
"md5": "5c21479c92f9a0c17d94cb32332f0ac1",
"sha256": "7e326e0855b42d282ee50be30c1f18b56a57f6e61f1ed28a415f04b006e855a5",
"sha1_git": "d0e1fcf3513e6931d604e6f9d2b69ec83cd79e07",
"mime_type": "application/octet-stream",
"file_type": "data",
"programming_language": null,
"is_binary": true,
"is_text": false,
"is_archive": false,
"is_media": false,
"is_source": false,
"is_script": false,
"files_count": 0,
"dirs_count": 0,
"size_count": 0,
"scan_errors": []
}
]
```

However, it is not the case in SCIO

Image

Test file:
wisp-logging-2025.11.11.195957-97a44b0.jar/META-INF/wisp-logging.kotlin_module
(https://repo1.maven.org/maven2/app/cash/wisp/wisp-logging/2025.11.11.195957-97a44b0/wisp-logging-2025.11.11.195957-97a44b0.jar)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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