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

Function is_junk_copyright

src/cluecode/copyrights.py:3792–3796  ·  view source on GitHub ↗

Return True if the string ``s`` matches any junk patterns.

(s, patterns=COPYRIGHTS_JUNK_PATTERN_MATCHERS)

Source from the content-addressed store, hash-verified

3790
3791
3792def is_junk_copyright(s, patterns=COPYRIGHTS_JUNK_PATTERN_MATCHERS):
3793 """
3794 Return True if the string ``s`` matches any junk patterns.
3795 """
3796 return any(matcher(s) for matcher in patterns)
3797
3798################################################################################
3799# AUTHORS CLEANUPS

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected