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

Add exclude pattern for dotnet #233

Merged
merged 9 commits into from
Feb 25, 2024
Merged

Conversation

attiasas
Copy link
Contributor

@attiasas attiasas commented Feb 18, 2024

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Add an option to exclude patterns for dotnet dependencies.

exclude, err := regexp.MatchString(excludePattern, projFilePath)
if err != nil {
log.Error(err)
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

What kind of errors can be thrown here that we can accept and not killing the process?
if these "errors" are such we can accept it might be better to use log.Warn so it will not look like an Error to the customer that we didn't take care of or ignored

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think an error is OK in this case, we log it just like we log when we can't parse at the above line.
There could be an error from the pattern or a lot of other reasons...
We got an error for this project so we report it and skip to the next, we don't want to fail all the build but still an error occur and it is not the full one, the customer may be at fault since we rely on input given to us.

Copy link
Contributor

@eranturgeman eranturgeman left a comment

Choose a reason for hiding this comment

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

Some fixes suggested

Copy link

👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.


@yahavi yahavi merged commit 096bf22 into jfrog:dev Feb 25, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants