aboutcode-org / aboutcode-org/scancode-toolkit

When scanning structured documents, use the structure!

Open
#2,868 0 comments 1 reaction 0 assignees View on GitHub
license scan
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

We are scanning markup as plain text such as a JSON, YAML, XML, or HTML files and so on (not when these are package manifests).
We should instead parse these are treat them as a structure. For instance, it does not make sense to detect a single license across multiple attributes in a JSON file.

This would help removing a class of false positive. We are already doing special pre-processing for PDF and binaries... This would just extend the practice to more file formats.

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.