Commit d1218d15 authored by Aaron U'Ren's avatar Aaron U'Ren
Browse files

feat(.golangci.yml): enable unconvert linter and remediate

parent 1d90e215
Showing with 3 additions and 2 deletions
+3 -2
......@@ -22,6 +22,7 @@ linters:
- noctx
- nolintlint
- stylecheck
- unconvert
issues:
exclude-rules:
# Excluding single digits from magic number detector because it produces too many obvious results (like klog)
......
......@@ -178,8 +178,8 @@ func newFakeNode(name string, addr string) *v1.Node {
ObjectMeta: metav1.ObjectMeta{Name: name},
Status: v1.NodeStatus{
Capacity: v1.ResourceList{
v1.ResourceName(v1.ResourceCPU): resource.MustParse("1"),
v1.ResourceName(v1.ResourceMemory): resource.MustParse("1G"),
v1.ResourceCPU: resource.MustParse("1"),
v1.ResourceMemory: resource.MustParse("1G"),
},
Addresses: []v1.NodeAddress{{Type: v1.NodeExternalIP, Address: addr}},
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment