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

feat(parser): ignore white space in pom.xml files #7747

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

sgaist
Copy link
Contributor

@sgaist sgaist commented Oct 15, 2024

Description

This PR modifies the pom.xml parser so that the content of the fields are trimmed. It makes the parser behave in the same manner as maven.

Related issues

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

Copy link
Collaborator

@knqyf263 knqyf263 left a comment

Choose a reason for hiding this comment

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

LGTM. I'd wait for @DmitriyLewen as he has more knowledge around Maven.

Copy link
Contributor

@DmitriyLewen DmitriyLewen left a comment

Choose a reason for hiding this comment

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

@sgaist thanks for your work!
LGTM

cc. @knqyf263

@DmitriyLewen
Copy link
Contributor

hm... tests didn't start...
@sgaist Can you rebase this PR?

It happens when creating the data structures and does not
modify the file itself. It makes the parser behave in the
same manner as maven.

Signed-off-by: Samuel Gaist <[email protected]>
The property was not correctly used.

Signed-off-by: Samuel Gaist <[email protected]>
@sgaist sgaist force-pushed the 7658-trim-spaces-loading-pom branch from 69b587d to a8a9d26 Compare October 17, 2024 08:58
@knqyf263 knqyf263 added this pull request to the merge queue Oct 17, 2024
Merged via the queue into aquasecurity:main with commit a7baa93 Oct 17, 2024
12 checks passed
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.

fix(java): trim spaces from pom.xml fields
3 participants