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

QA: update code for golangci-lint and run go fmt. #87

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

aznashwan
Copy link
Contributor

@aznashwan aznashwan commented Sep 5, 2023

While the vast majority of the changes are trivial, I'd like to draw the reviewers' attention to the following places where semantics may have slightly changed and I request you take a closer look at:

  • this switch to strings.EqualFold() which has the potential to do something weird on non EN-US systems, but considering it's only used during testing and only seems to be called during tests so it should be a real-world issue.
  • I have removed the Setup/Teardown steps from plugin_testing.RunAll() since both the sub-calls to plugin_testing.{RunUnitTest,RunBasicConnectivityTest} in turn already call Setup()/Teardown().

network/endpoint.go Outdated Show resolved Hide resolved
nm network.Manager
}

type netPlugin struct {

Choose a reason for hiding this comment

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

This is shifted right which is not correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's actually go fmt identifying code snippets within the comment and attempting to indent it so it can get formatted as code by godoc.

Either way, I've noticed that these comments, initially added in this PR, are most likely redundant since the netPlugin struct has been moved into its own package, so I'll be removing them completely.

plugins/sdnbridge/sdnbridge_windows.go Outdated Show resolved Hide resolved
plugins/sdnoverlay/sdnoverlay_windows.go Outdated Show resolved Hide resolved
test/utilities/connectivity_testing.go Outdated Show resolved Hide resolved
test/utilities/connectivity_testing.go Outdated Show resolved Hide resolved
@aznashwan aznashwan force-pushed the linter-fixes branch 2 times, most recently from 5877c01 to 526ea4a Compare September 11, 2023 11:59
@mdebjit mdebjit merged commit 3a5374c into microsoft:master Sep 13, 2023
3 checks passed
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