-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isStandardLicenseWithinText - match spaces after var rule #249
Conversation
Fixes #241 Fixes #234 Include code provided by @pmonk in #236 modified for version 2.0+ Signed-off-by: Gary O'Neall <[email protected]>
@goneall it appears that the new unit tests that leverage the FWIW here are the (minimal) unit tests in the original PR, though arguably more could/should be added (especially to cover the cases @sdheh identified in issue #245). |
Thanks for the catch @pmonks - it must have gotten dropped when I rebased / merged it to the 2.0 latest. I'll check to make sure the unit tests pass and add the tests back in in a subsequent commit. |
Signed-off-by: Gary O'Neall <[email protected]>
@pmonks - the unit tests are now included - it passes with the SPDX_JAVA_LIB_RUN_SLOW_TESTS environment variable set to true. |
@pmonks - Could you take another look and let me know if this is good to merge? There's also a couple other PR's if you have time for a review. |
@goneall will do. Still just digging out after 3 weeks away. |
No worries - just wanted to keep it in your stack. Welcome back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I ran the unit tests and they're now passing (which they previously didn't). I also confirmed that the tests include the failure case identified in #245.
@goneall one question though - I wasn't sure what the significance of |
Mostly to split up a large unwieldy test case class - the size of the class would essentially double when testing for both the compatible V2 license classes and the newer V3 classes. It also helps organize the imports (you'd need to fully qualify the class names due to similar class names in V2 and V3). |
Fixes #241
Fixes #234
Include code provided by @pmonk in #236 modified for version 2.0+
Thanks @pmonks and @sdheh for your patience and analysis / unit test help!