Preparing report...

Report for github.com/Murray-LIANG/gounity

A+    Excellent!    Found 24 issues across 47 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!


gocyclo97%

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.


golint48%

Golint is a linter for Go source code.

    • gounity/host_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 35: warning: exported type HostOperatorGen should have comment or be unexported (golint)
    • gounity/iscsinode_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 33: warning: exported type IscsiNodeOperatorGen should have comment or be unexported (golint)
    • gounity/pool_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 39: warning: exported type PoolOperatorGen should have comment or be unexported (golint)
    • gounity/enums_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 5: warning: exported type BlockHostAccessEnum should have comment or be unexported (golint)
    • Line 19: warning: exported type FSSupportedProtocolEnum should have comment or be unexported (golint)
    • Line 33: warning: exported type HostLUNAccessEnum should have comment or be unexported (golint)
    • Line 59: warning: exported type HostLunTypeEnum should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; const HostLunTypeLUN_Snap should be HostLunTypeLUNSnap (golint)
    • Line 73: warning: exported type IpProtocolVersionEnum should have comment or be unexported (golint)
    • Line 84: warning: exported type NFSShareDefaultAccessEnum should have comment or be unexported (golint)
    • Line 104: warning: exported type SnapAccessLevelEnum should have comment or be unexported (golint)
    • Line 124: warning: exported type SnapCreatorTypeEnum should have comment or be unexported (golint)
    • Line 135: warning: don't use underscores in Go names; const SnapCreatorTypeUser_Custom should be SnapCreatorTypeUserCustom (golint)
    • Line 138: warning: don't use underscores in Go names; const SnapCreatorTypeUser_Default should be SnapCreatorTypeUserDefault (golint)
    • Line 141: warning: don't use underscores in Go names; const SnapCreatorTypeExternal_VSS should be SnapCreatorTypeExternalVSS (golint)
    • Line 144: warning: don't use underscores in Go names; const SnapCreatorTypeExternal_NDMP should be SnapCreatorTypeExternalNDMP (golint)
    • Line 147: warning: don't use underscores in Go names; const SnapCreatorTypeExternal_Restore should be SnapCreatorTypeExternalRestore (golint)
    • Line 150: warning: don't use underscores in Go names; const SnapCreatorTypeExternal_Replication_Manager should be SnapCreatorTypeExternalReplicationManager (golint)
    • Line 156: warning: don't use underscores in Go names; const SnapCreatorTypeSnap_CLI should be SnapCreatorTypeSnapCLI (golint)
    • Line 162: warning: exported type SnapStateEnum should have comment or be unexported (golint)
    • gounity/snap.go
    • Line 23: warning: exported method Snap.Create should have comment or be unexported (golint)
    • Line 52: warning: exported method Snap.Copy should have comment or be unexported (golint)
    • Line 81: warning: exported method Snap.AttachToHost should have comment or be unexported (golint)
    • Line 110: warning: exported method Snap.DetachFromHost should have comment or be unexported (golint)
    • gounity/storageresource_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 35: warning: exported type StorageResourceOperatorGen should have comment or be unexported (golint)
    • gounity/iscsiportal_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 44: warning: exported type IscsiPortalOperatorGen should have comment or be unexported (golint)
    • gounity/nasserver_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 31: warning: exported type NasServerOperatorGen should have comment or be unexported (golint)
    • gounity/snap_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 55: warning: exported type SnapOperatorGen should have comment or be unexported (golint)
    • gounity/ethernetport_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 33: warning: exported type EthernetPortOperatorGen should have comment or be unexported (golint)
    • gounity/filesystem_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 35: warning: exported type FilesystemOperatorGen should have comment or be unexported (golint)
    • gounity/util.go
    • Line 141: warning: exported var ErrUnableParseRespToError should have comment or be unexported (golint)
    • Line 143: warning: exported function ParseUnityError should have comment or be unexported (golint)
    • gounity/hostlun_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 39: warning: exported type HostLUNOperatorGen should have comment or be unexported (golint)
    • gounity/lun_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 61: warning: exported type LunOperatorGen should have comment or be unexported (golint)
    • gounity/nfsshare_gen.go
    • Line 1: warning: package comment should be of the form "Package gounity ..." (golint)
    • Line 36: warning: exported type NfsShareOperatorGen 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!