Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Sep 30, 2025

Fixes #1488.

@isoos isoos requested a review from sigurdm September 30, 2025 16:22
@isoos
Copy link
Collaborator Author

isoos commented Sep 30, 2025

Apparently there is a test which somewhat contradicts with the fix, since the removal algorithm was ambiguous:
https://github.com/dart-lang/pana/blob/master/test/license_detector_test.dart#L132-L145

The test says that while we have the enclosed region with less density, we shouldn't remove it, as it has better confidence score. But I think that makes the algorithm ambiguous (as we've seen with the SSH example), and it is better to change the test specification.

@isoos isoos merged commit 811e86f into dart-lang:master Oct 2, 2025
5 checks passed
@isoos isoos deleted the fix-bug branch October 2, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

License detection overlap removal fails

2 participants