Add Stutter linter

This also adds a bunch of nolints for the node package which
has a ton of stuttering. Perhaps something to mitigate in another
iteration.
This commit is contained in:
Sargun Dhillon
2020-12-07 01:43:38 -08:00
parent d29adf5ce3
commit 0d1f6f1625
3 changed files with 5 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ var (
*/
// MockProvider implements the virtual-kubelet provider interface and stores pods in memory.
type MockProvider struct {
type MockProvider struct { // nolint:golint
nodeName string
operatingSystem string
internalIP string
@@ -54,7 +54,7 @@ type MockProvider struct {
}
// MockConfig contains a mock virtual-kubelet's configurable parameters.
type MockConfig struct {
type MockConfig struct { // nolint:golint
CPU string `json:"cpu,omitempty"`
Memory string `json:"memory,omitempty"`
Pods string `json:"pods,omitempty"`