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

Function copyright_detector

src/packagedcode/debian_copyright.py:1638–1654  ·  view source on GitHub ↗

Return lists of detected copyrights, authors & holders in file at location.

(location)

Source from the content-addressed store, hash-verified

1636
1637
1638def copyright_detector(location):
1639 """
1640 Return lists of detected copyrights, authors & holders in file at location.
1641 """
1642 if location:
1643 from cluecode.copyrights import detect_copyrights
1644
1645 copyrights = []
1646
1647 for detection in detect_copyrights(
1648 location,
1649 include_copyrights=True,
1650 include_holders=False,
1651 include_authors=False,
1652 ):
1653 copyrights.append(detection.copyright)
1654 return copyrights
1655
1656
1657def filter_duplicate_strings(strings):

Callers 2

from_fileMethod · 0.85
detect_copyrightsMethod · 0.85

Calls 2

detect_copyrightsFunction · 0.90
appendMethod · 0.45

Tested by

no test coverage detected