Skip to content
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

Fix issue #12 #142

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Fix issue #12 #142

merged 1 commit into from
Sep 16, 2024

Conversation

n1ckl0sk0rtge
Copy link
Member

@n1ckl0sk0rtge n1ckl0sk0rtge commented Sep 11, 2024

@hugoqnc I've checked that this doesn't break any other tests in Java, but I haven't checked it for BC. Please do so before we merge this PR.

Should fix #12

How the fix works

If a shouldBeDetectedAs defined as part of a detection rule and if this detection should be append as a child to another value (by using asChildOfParameterWithId(...)) then this detection value does not get the root depending detection rules appended (done with withDependingDetectionRules).

If more then one detection value should be detected on root level (both don't use asChildOfParameterWithId(...)) then, this will still create duplicated nodes on the lower levels. But as part of the translation procedure, this should be merged automatically.

Signed-off-by: Nicklas Körtge <[email protected]>
@n1ckl0sk0rtge n1ckl0sk0rtge added the bug Something isn't working label Sep 11, 2024
@n1ckl0sk0rtge n1ckl0sk0rtge self-assigned this Sep 11, 2024
Copy link
Member

@hugoqnc hugoqnc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, does not break any BC test

@hugoqnc hugoqnc merged commit 8cfb4bd into main Sep 16, 2024
1 of 2 checks passed
@hugoqnc hugoqnc deleted the fix/issue-12 branch September 16, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Depending detection rules can lead to duplicate findings
2 participants