aboutcode-org / aboutcode-org/scancode-toolkit

Search authors based on known names

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

描述

Sometimes the authorship notices are hardly detectable such as here https://github.com/torvalds/linux/blob/master/drivers/net/ifb.c :
```
The original concept is based on what is known as the IMQ
driver initially written by Martin Devera, later rewritten
by Patrick McHardy and then maintained by Andre Correa.
```
or there https://github.com/torvalds/linux/blob/master/net/ipv6/reassembly.c
```
* Fixes:
* Andi Kleen Make it work with multiple hosts.
* More RFC compliance.
*
* Horst von Brand Add missing #include
* Alexey Kuznetsov SMP races, threading, cleanup.
*
```
We could in some cases improve the grammar for author detection. Alternatively we could assist this detection with a list of known author names/emails.

This new feature could take a few different forms:
- 1. a generic "search" feature for keywords as in https://github.com/nexB/scancode-toolkit/issues/1751
- 2. a specific enhanced author detection

For 1. We would have a new option like a `--search-from ` and this would used to return a new file-level attribute that would be similar in structure to the author or copyright output. The implementation could be a simple "naive" regex-based search, or based on an automaton created on the fly (similar to the automaton used in license detection)

For 2. we would extend the author detection and grammar to extend it with a like of patterns like in 1.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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