-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: snyk code client improvements #11
Conversation
36bd7bd
to
51f88da
Compare
51f88da
to
59bcfa5
Compare
internal/http/http.go
Outdated
@@ -60,12 +69,15 @@ var retryErrorCodes = map[int]bool{ | |||
http.StatusInternalServerError: true, | |||
} | |||
|
|||
// TODO: mutex lock for configuration? |
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.
The snyk-ls
makes sure to not read this value if someone is writing to it, should we do this or leave it to snyk-ls
to compute it when giving it to the client?
d8c11f6
to
89dff3a
Compare
We think the license checks will continue to fail until this gets merged and I re-import the project. |
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.
🍘
6977c30
to
1026162
Compare
Contains improvements discussed in #10, such as:
CaptureError
takes in some "options" that tell it whether to send diagnostics for LSP or notgo-application-framework
instead ofsnyk-ls
- for this the only "configuration" GAF doesn't have is thesnykCodeApiUrl
, which instead of moving over I decided to add as another function argument to the functions but I'm happy to discussgolagnci-lint
in fixing mode whenmake format
runsgo-application-framework
snyk-ls
in this repo so that we don't depend onsnyk-ls
(eventually the code insnyk-ls
should just disappear, I'm unsure whether to refactor it now or not)