Return lists of detected copyrights, authors & holders in file at location.
(location)
| 1636 | |
| 1637 | |
| 1638 | def 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 | |
| 1657 | def filter_duplicate_strings(strings): |
no test coverage detected