Preparing report...

Report for github.com/mhewedy/vermin

F    ... is for lots of things to Fix!    Found 15 issues across 72 files

Tweet

gofmt0%

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

An error occurred while running this test (exit status 2)


go_vet0%

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

An error occurred while running this test (exit status 2)


golint79%

Golint is a linter for Go source code.

    • vermin/vms/port.go
    • Line 90: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 107: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • vermin/db/vmdb.go
    • Line 15: warning: exported type VMDB should have comment or be unexported (golint)
    • Line 20: warning: exported function Load should have comment or be unexported (golint)
    • Line 31: warning: exported function SetImage should have comment or be unexported (golint)
    • Line 38: warning: exported function AddTag should have comment or be unexported (golint)
    • Line 45: warning: exported function RemoveTag should have comment or be unexported (golint)
    • vermin/vms/vms.go
    • Line 17: warning: exported function Tag should have comment or be unexported (golint)
    • Line 23: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 28: warning: exported function Start should have comment or be unexported (golint)
    • Line 43: warning: exported function Stop should have comment or be unexported (golint)
    • Line 59: warning: exported function Restart should have comment or be unexported (golint)
    • Line 66: warning: exported function SecureShell should have comment or be unexported (golint)
    • Line 78: warning: exported function Exec should have comment or be unexported (golint)
    • Line 90: warning: exported function Remove should have comment or be unexported (golint)
    • Line 106: warning: exported function PortForward should have comment or be unexported (golint)
    • Line 128: warning: exported function CopyFiles should have comment or be unexported (golint)
    • Line 150: warning: exported function IP should have comment or be unexported (golint)
    • Line 159: warning: exported function Modify should have comment or be unexported (golint)
    • Line 167: warning: exported function GUI should have comment or be unexported (golint)
    • Line 180: warning: exported function Commit should have comment or be unexported (golint)
    • vermin/db/db.go
    • Line 10: warning: exported const VMNamePrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported var ImagesDir should have comment or be unexported (golint)
    • Line 20: warning: exported function GetImageFilePath should have comment or be unexported (golint)
    • Line 24: warning: exported function GetVMPath should have comment or be unexported (golint)
    • Line 36: warning: exported function GetUsername should have comment or be unexported (golint)
    • Line 40: warning: exported function GetPrivateKeyPath should have comment or be unexported (golint)
    • vermin/images/images.go
    • Line 14: warning: exported function List should have comment or be unexported (golint)
    • Line 18: warning: exported function Display should have comment or be unexported (golint)
    • vermin/progress/progress.go
    • Line 11: warning: exported type StopFunc should have comment or be unexported (golint)
    • Line 13: warning: exported function Immediate should have comment or be unexported (golint)
    • Line 22: warning: exported function Show should have comment or be unexported (golint)
    • vermin/hypervisor/hypervisor.go
    • Line 18: warning: exported function GetHypervisorName should have comment or be unexported (golint)
    • Line 30: warning: exported function Start should have comment or be unexported (golint)
    • Line 39: warning: exported function Commit should have comment or be unexported (golint)
    • Line 48: warning: exported function Create should have comment or be unexported (golint)
    • Line 57: warning: exported function List should have comment or be unexported (golint)
    • Line 68: warning: exported function Stop should have comment or be unexported (golint)
    • Line 77: warning: exported function Remove should have comment or be unexported (golint)
    • Line 86: warning: exported function Modify should have comment or be unexported (golint)
    • Line 95: warning: exported function ShowGUI should have comment or be unexported (golint)
    • Line 104: warning: exported function AddMount should have comment or be unexported (golint)
    • Line 118: warning: exported function ListMounts should have comment or be unexported (golint)
    • Line 127: warning: exported function RemoveMounts should have comment or be unexported (golint)
    • Line 136: warning: exported function SetNetworkAdapterAsBridge should have comment or be unexported (golint)
    • Line 145: warning: exported function GetBoxInfo should have comment or be unexported (golint)
    • Line 154: warning: exported function GetSubnet should have comment or be unexported (golint)
    • Line 163: warning: exported function ShrinkDisk should have comment or be unexported (golint)
    • vermin/vms/create.go
    • Line 17: warning: exported type ProvisionScript should have comment or be unexported (golint)
    • Line 22: warning: exported function Create should have comment or be unexported (golint)
    • vermin/vms/mount.go
    • Line 14: warning: exported function Unmount should have comment or be unexported (golint)
    • Line 27: warning: exported function Mount should have comment or be unexported (golint)
    • Line 40: warning: exported function ListMounts should have comment or be unexported (golint)

gocyclo0%

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.

An error occurred while running this test (exit status 2)


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)