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

chore(server): refactoring analyzer files to comply with resources standard #2810

Merged
merged 4 commits into from
Jun 22, 2023

Conversation

danielbdias
Copy link
Contributor

@danielbdias danielbdias commented Jun 22, 2023

This PR updates the analyzer files to comply with the resource standard.

@@ -8,7 +8,7 @@ import (

"github.com/kubeshop/tracetest/server/analytics"
"github.com/kubeshop/tracetest/server/linter"
linterResource "github.com/kubeshop/tracetest/server/linter/resource"
analyzerResource "github.com/kubeshop/tracetest/server/linter/analyzer"
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be just analyzer? is there a reason for the alias?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I'll update it.

@@ -24,7 +24,7 @@ import (
httpServer "github.com/kubeshop/tracetest/server/http"
"github.com/kubeshop/tracetest/server/http/mappings"
"github.com/kubeshop/tracetest/server/http/websocket"
linterResource "github.com/kubeshop/tracetest/server/linter/resource"
analyzer "github.com/kubeshop/tracetest/server/linter/analyzer"
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to use the alias if the alias has the same name as the package. You can remove them all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Also updating it.

server/app/facade.go Outdated Show resolved Hide resolved
server/linter/analyzer/analyzer_repository_test.go Outdated Show resolved Hide resolved
server/linter/linter.go Outdated Show resolved Hide resolved
@danielbdias danielbdias merged commit e1170d1 into main Jun 22, 2023
@danielbdias danielbdias deleted the update/stardardize-analyzer-resource branch June 22, 2023 21:16
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