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

Do not record Maven compile scope in dependency groups #1003

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

cuixq
Copy link
Contributor

@cuixq cuixq commented May 29, 2024

We should only record non-default dependency groups.

For Maven, compile is the default scope so it should not be recorded.
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#dependency-scope

@codecov-commenter
Copy link

codecov-commenter commented May 29, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 64.96%. Comparing base (18e4585) to head (0c3e76f).

Files Patch % Lines
pkg/lockfile/parse-maven-lock.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1003      +/-   ##
==========================================
- Coverage   64.97%   64.96%   -0.02%     
==========================================
  Files         149      149              
  Lines       12257    12259       +2     
==========================================
  Hits         7964     7964              
- Misses       3842     3844       +2     
  Partials      451      451              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cuixq cuixq requested a review from another-rex May 30, 2024 01:38
@cuixq cuixq merged commit e94c6b5 into google:main May 30, 2024
13 checks passed
@cuixq cuixq deleted the scope branch May 30, 2024 03:54
josieang pushed a commit to josieang/osv-scanner that referenced this pull request Jun 6, 2024
We should only record non-default dependency groups. 

For Maven, `compile` is the default scope so it should not be recorded.

https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#dependency-scope
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.

None yet

3 participants