Skip to content

Commit 09a3581

Browse files
committed
Add FIXME for small matches #712
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent b9807cc commit 09a3581

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/licensedcode/index.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ def match(self, location=None, query_string=None, min_score=0, detect_negative=T
478478
# do not match futher if we do not need to
479479
if whole_query_run.is_matchable(include_low=True, qspans=matched_qspans):
480480

481+
# FIXME: we should exclude small and "weak" rules from the subset entirely
482+
# they are unlikely to be matchable with a seq match
481483
rules_subset = (self.regular_rids | self.small_rids)
482484

483485
for qrnum, query_run in enumerate(qry.query_runs, 1):

0 commit comments

Comments
 (0)