aboutcode-org / aboutcode-org/scancode.io

Inconsistent file metadata value

Open
#2,172 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
215
Forks
203
Avg merge
4d 8h
Merged PRs (30d)
6

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.