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

🌱 Remove nolint usages for gocyclo, paralleltest, wrapcheck and gocognit #2407

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apis/v1alpha3/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
infrav1 "sigs.k8s.io/cluster-api-provider-vsphere/apis/v1beta1"
)

//nolint:paralleltest
func TestFuzzyConversion(t *testing.T) {
g := NewWithT(t)
scheme := runtime.NewScheme()
Expand Down
5 changes: 0 additions & 5 deletions pkg/services/govmomi/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,6 @@ func getMacAddresses(ctx *virtualMachineContext) ([]string, map[string]int, map[
// waitForIPAddresses waits for all network devices that should be getting an
// IP address to have an IP address. This is any network device that specifies a
// network name and DHCP for v4 or v6 or one or more static IP addresses.
// The gocyclo detector is disabled for this function as it is difficult to
// rewrite much simpler due to the maps used to track state and the lambdas
// that use the maps.
//
//nolint:gocyclo,gocognit
func waitForIPAddresses(
ctx *virtualMachineContext,
macToDeviceIndex map[string]int,
Expand Down
2 changes: 0 additions & 2 deletions pkg/services/govmomi/vcenter/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const (
// Clone kicks off a clone operation on vCenter to create a new virtual machine. This function does not wait for
// the virtual machine to be created on the vCenter, which can be resolved by waiting on the task reference stored
// in VMContext.VSphereVM.Status.TaskRef.
//
//nolint:gocognit,gocyclo
func Clone(ctx *context.VMContext, bootstrapData []byte, format bootstrapv1.Format) error {
ctx = &context.VMContext{
ControllerContext: ctx.ControllerContext,
Expand Down
2 changes: 0 additions & 2 deletions test/helpers/envtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

//nolint:wrapcheck

// Package helpers contains helpers for creating a test environment.
package helpers

Expand Down
Loading