Preparing report...

Report for github.com/utkuozdemir/pv-migrate

A+    Excellent!    Found 18 issues across 37 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!


gocyclo100%

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.

No problems detected. Good job!


golint54%

Golint is a linter for Go source code.

    • pv-migrate/internal/rsync/ssh.go
    • Line 15: warning: exported type SSHKeyAlgorithm should have comment or be unexported (golint)
    • Line 18: warning: exported const RSAKeyAlgorithm should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var SSHKeyAlgorithms should have comment or be unexported (golint)
    • Line 26: warning: exported function CreateSSHKeyPair should have comment or be unexported (golint)
    • pv-migrate/internal/app/app.go
    • Line 17: warning: exported const CommandMigrate should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • pv-migrate/internal/k8s/labels.go
    • Line 7: warning: exported type Component should have comment or be unexported (golint)
    • Line 24: warning: exported function Labels should have comment or be unexported (golint)
    • Line 33: warning: exported function ComponentLabels should have comment or be unexported (golint)
    • Line 39: warning: exported function LabelSelector should have comment or be unexported (golint)
    • pv-migrate/internal/rsync/sshd.go
    • Line 18: warning: exported function CreateSshdService should have comment or be unexported (golint)
    • Line 48: warning: exported function CreateSshdPodWaitTillRunning should have comment or be unexported (golint)
    • Line 108: warning: exported function PrepareSshdPod should have comment or be unexported (golint)
    • pv-migrate/migration/migration.go
    • Line 4: warning: exported const DefaultRsyncImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type PVC should have comment or be unexported (golint)
    • Line 17: warning: exported type Migration should have comment or be unexported (golint)
    • Line 26: warning: exported type Options should have comment or be unexported (golint)
    • pv-migrate/internal/strategy/strategy.go
    • Line 12: warning: exported const Mnt2Strategy should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported var DefaultStrategies should have comment or be unexported (golint)
    • Line 27: warning: exported type Strategy should have comment or be unexported (golint)
    • Line 34: warning: exported function GetStrategiesMapForNames should have comment or be unexported (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!


misspell97%

Misspell Finds commonly misspelled English words