Skip to content

Search authors based on known names #3216

Description

@pombredanne

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 <linux/string.h>
 *	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:

For 1. We would have a new option like a --search-from <file with one phrase or pattern to search per line> 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions