File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
tests/packagedcode/data/license_detection/reference-to-package Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1382,7 +1382,7 @@ def has_references_to_local_files(license_matches):
13821382 Return True if any of the matched Rule for the ``license_matches`` has a
13831383 non empty `referenced_filenames`, otherwise return False.
13841384 """
1385- return any (
1385+ return not has_extra_words ( license_matches ) and any (
13861386 bool (match .rule .referenced_filenames )
13871387 for match in license_matches
13881388 )
Original file line number Diff line number Diff line change 725725 "license_expression" : " apache-2.0" ,
726726 "license_expression_spdx" : " Apache-2.0" ,
727727 "detection_count" : 2 ,
728- "detection_log" : [],
728+ "detection_log" : [
729+ " extra-words"
730+ ],
729731 "reference_matches" : [
730732 {
731733 "license_expression" : " apache-2.0" ,
10241026 "matched_text_diagnostics" : " License\n\n [PaddleNLP] is provided under the [Apache-2.0 License](./LICENSE)."
10251027 }
10261028 ],
1027- "detection_log" : [],
1029+ "detection_log" : [
1030+ " extra-words"
1031+ ],
10281032 "identifier" : " apache_2_0-4571361c-d5af-4e7e-c015-6cc10c1b8174"
10291033 }
10301034 ],
15771581 "matched_text_diagnostics" : " License\n\n [PaddleNLP] is provided under the [Apache-2.0 License](./LICENSE)."
15781582 }
15791583 ],
1580- "detection_log" : [],
1584+ "detection_log" : [
1585+ " extra-words"
1586+ ],
15811587 "identifier" : " apache_2_0-4571361c-d5af-4e7e-c015-6cc10c1b8174"
15821588 }
15831589 ],
You can’t perform that action at this time.
0 commit comments