We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
LicenseCompareHelper.isTextMatchingTemplate has the following code
LicenseCompareHelper.isTextMatchingTemplate
compareTemplateOutputHandler = new CompareTemplateOutputHandler(removeLineSeparators(removeCommentChars(compareText)));
The column returned if there is a difference in a line from which comment chars were removed is wrong because it refers to the transformed text.
Example:
String licenseText = "// a b"; String template = "a"; System.out.println(LicenseCompareHelper.isTextMatchingTemplate(template, licenseText).getDifferenceMessage());
returns Additional text found after the end of the expected license text starting at line #1 column #3 "b"
Additional text found after the end of the expected license text starting at line #1 column #3 "b"
The text was updated successfully, but these errors were encountered:
Thanks again @sdheh for the analysis.
Pull requests are welcome - otherwise I'll look into a fix after finishing the SPDX 3.0 upgrade work.
Sorry, something went wrong.
No branches or pull requests
LicenseCompareHelper.isTextMatchingTemplate
has the following codeThe column returned if there is a difference in a line from which comment chars were removed is wrong because it refers to the transformed text.
Example:
returns
Additional text found after the end of the expected license text starting at line #1 column #3 "b"
The text was updated successfully, but these errors were encountered: