-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat/isasmendi/add scanoss.json support #17
base: main
Are you sure you want to change the base?
Conversation
…ostProcessor, implement start_line and end_line on RemoveRule
…alid settings json
a751c3e
to
e297bac
Compare
|
||
return rules.stream() | ||
.filter(rule -> isMatchingRule(result, rule)) | ||
.anyMatch(rule -> { |
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.
@eeisegn anyMatch is a short circuit operation, the first match returns true and stops the iteration
private boolean isRemoveLineRangeMatch(@NonNull RemoveRule rule, @NonNull ScanFileResult result) { | ||
LineRange ruleLineRange = new LineRange(rule.getStartLine(), rule.getEndLine()); | ||
|
||
String lines = result.getFileDetails().get(0).getLines(); |
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.
@eeisegn Validation here is not necessary.
Invalid results are skipped upstream within hasInvalidStructure()
WHAT