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

Method rules_length

src/licensedcode/detection.py:365–371  ·  view source on GitHub ↗

Return the length of the combined matched rules as the number of all rule tokens. Because of the possible overlap this may be inaccurate.

(self)

Source from the content-addressed store, hash-verified

363 return start_line, end_line
364
365 def rules_length(self):
366 """
367 Return the length of the combined matched rules as the number
368 of all rule tokens.
369 Because of the possible overlap this may be inaccurate.
370 """
371 return sum(m.self.rule.length for m in self.matches)
372
373 def coverage(self):
374 """

Callers 1

relevanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected