MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / detect_credits_authors

Function detect_credits_authors

src/cluecode/linux_credits.py:71–81  ·  view source on GitHub ↗

Yield AuthorDetection objects detected in the CREDITS file at ``location``.

(location)

Source from the content-addressed store, hash-verified

69
70
71def detect_credits_authors(location):
72 """
73 Yield AuthorDetection objects detected in the CREDITS file at ``location``.
74 """
75 if not is_credits_file(location):
76 return
77
78 from textcode.analysis import numbered_text_lines
79
80 numbered_lines = list(numbered_text_lines(location, demarkup=False))
81 yield from detect_credits_authors_from_lines(numbered_lines)
82
83
84def detect_credits_authors_from_lines(numbered_lines):

Callers 1

detect_copyrightsFunction · 0.90

Calls 3

numbered_text_linesFunction · 0.90
is_credits_fileFunction · 0.85

Tested by

no test coverage detected