Preparing report...

Report for sigs.k8s.io/descheduler

A+    Excellent!    Found 32 issues across 64 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo85%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint57%

Golint is a linter for Go source code.

    • /sigs.k8s.io/descheduler/pkg/descheduler/pod/pods.go
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 161: warning: exported function IsBestEffortPod should have comment or be unexported (golint)
    • Line 165: warning: exported function IsBurstablePod should have comment or be unexported (golint)
    • Line 169: warning: exported function IsGuaranteedPod should have comment or be unexported (golint)
    • /sigs.k8s.io/descheduler/cmd/descheduler/app/options/options.go
    • Line 34: warning: exported const DefaultDeschedulerPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: comment on exported method DeschedulerServer.Validate should be of the form "Validate ..." (golint)
    • Line 82: warning: receiver name rs should be consistent with previous receiver name s for DeschedulerServer (golint)
    • /sigs.k8s.io/descheduler/pkg/api/types.go
    • Line 26: warning: exported type DeschedulerPolicy should have comment or be unexported (golint)
    • Line 48: warning: exported type StrategyName should have comment or be unexported (golint)
    • Line 49: warning: exported type StrategyList should have comment or be unexported (golint)
    • Line 51: warning: exported type DeschedulerStrategy should have comment or be unexported (golint)
    • Line 69: warning: comment on exported type StrategyParameters should be of the form "StrategyParameters ..." (with optional leading article) (golint)
    • Line 85: warning: exported type Percentage should have comment or be unexported (golint)
    • Line 86: warning: exported type ResourceThresholds should have comment or be unexported (golint)
    • Line 88: warning: exported type NodeResourceUtilizationThresholds should have comment or be unexported (golint)
    • Line 94: warning: exported type PodsHavingTooManyRestarts should have comment or be unexported (golint)
    • Line 99: warning: exported type RemoveDuplicates should have comment or be unexported (golint)
    • Line 103: warning: exported type PodLifeTime should have comment or be unexported (golint)
    • /sigs.k8s.io/descheduler/pkg/api/v1alpha1/types.go
    • Line 26: warning: exported type DeschedulerPolicy should have comment or be unexported (golint)
    • Line 48: warning: exported type StrategyName should have comment or be unexported (golint)
    • Line 49: warning: exported type StrategyList should have comment or be unexported (golint)
    • Line 51: warning: exported type DeschedulerStrategy should have comment or be unexported (golint)
    • Line 69: warning: comment on exported type StrategyParameters should be of the form "StrategyParameters ..." (with optional leading article) (golint)
    • Line 83: warning: exported type Percentage should have comment or be unexported (golint)
    • Line 84: warning: exported type ResourceThresholds should have comment or be unexported (golint)
    • Line 86: warning: exported type NodeResourceUtilizationThresholds should have comment or be unexported (golint)
    • Line 92: warning: exported type PodsHavingTooManyRestarts should have comment or be unexported (golint)
    • Line 97: warning: exported type RemoveDuplicates should have comment or be unexported (golint)
    • Line 101: warning: exported type PodLifeTime should have comment or be unexported (golint)
    • /sigs.k8s.io/descheduler/pkg/utils/pod.go
    • Line 15: warning: comment on exported const LocalStorageCapacityIsolation should be of the form "LocalStorageCapacityIsolation ..." (golint)
    • Line 21: warning: comment on exported const PodOverhead should be of the form "PodOverhead ..." (golint)
    • Line 124: warning: comment on exported function IsPodWithPVC should be of the form "IsPodWithPVC ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!