Skip to content

Commit

Permalink
Remove nolint usages for gocyclo, paralleltest and gocognit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankitasw committed Sep 29, 2023
1 parent e77d02c commit 2abfaed
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
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

0 comments on commit 2abfaed

Please sign in to comment.