Skip to content

Conversation

@teodora-sandu
Copy link
Contributor

Split from #22.

This refactors the Code Scanner interface so that it's easier to use in snyk-ls and we don't need to expose unnecessary clients for the consumers of the library.

Now, the HTTP client, logger, config, instrumentor, and error reporter are the only parts of this flow that need to be different between the CLI and IDE (see snyk/snyk-ls#484).

As a result, the bundle and deepcode packages thus can be moved to internal/ since no one needs to use it directly.

It's easier to review commit by commit.

Tested it with snyk-ls and snyk-intellij-plugin by following https://snyksec.atlassian.net/wiki/spaces/IDE/pages/1966866488/How+to+setup+development+for+Consistent+Ignores

@teodora-sandu teodora-sandu force-pushed the refactor/code-scanner-signature branch from 1a29cdc to 494b4ce Compare April 5, 2024 16:03
@teodora-sandu teodora-sandu marked this pull request as ready for review April 5, 2024 16:03
@teodora-sandu teodora-sandu requested a review from a team as a code owner April 5, 2024 16:03
@teodora-sandu teodora-sandu force-pushed the refactor/code-scanner-signature branch from a552889 to 494b4ce Compare April 5, 2024 16:09
@teodora-sandu teodora-sandu force-pushed the refactor/http-client branch from bc53a53 to 95364d6 Compare April 5, 2024 16:21
@teodora-sandu teodora-sandu force-pushed the refactor/code-scanner-signature branch 4 times, most recently from 7d4f479 to b20292c Compare April 5, 2024 16:39
"github.com/rs/zerolog"

"github.com/snyk/code-client-go/deepcode"
"github.com/snyk/code-client-go/internal/deepcode"
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice!

@teodora-sandu teodora-sandu force-pushed the refactor/http-client branch from 95364d6 to a3a873b Compare April 8, 2024 13:51
@teodora-sandu teodora-sandu force-pushed the refactor/http-client branch from a3a873b to dc43572 Compare April 8, 2024 14:06
Base automatically changed from refactor/http-client to main April 8, 2024 14:08
@teodora-sandu teodora-sandu force-pushed the refactor/code-scanner-signature branch from b20292c to d782ad9 Compare April 8, 2024 14:10
@teodora-sandu teodora-sandu merged commit bb94aec into main Apr 8, 2024
@teodora-sandu teodora-sandu deleted the refactor/code-scanner-signature branch April 8, 2024 14:21
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.

3 participants