aboutcode-org / aboutcode-org/scancode-toolkit

Generate rules automatically using github search API

未关闭
#4,479 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
new and improved data
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

There are a lot of new licenses added and it is nice if we have a script to automate searching for rules for these licenses and adding these as rules.

For example in https://github.com/aboutcode-org/scancode-toolkit/pull/4478 we had the following licenses added:
[new_licenses.txt](https://github.com/user-attachments/files/21351992/new_licenses.txt)

The steps roughly are:

- [ ] Get the new licenses using synclic (license sync) scripts
- [ ] Get the new license keys (using GitPython: read changed files)
- [ ] Get the license names to search for (might have to search without version numbers too)
- [ ] Use github search API to search for license occurances (remove scancode/licensedb related search results)
- [ ] run license detection to see if we detect these correctly
- [ ] if license not detected correctly add as rules:

I have this working roughly, but this needs some improvements and the new license matcher. Will add the script soon.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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