Preparing report...

Report for github.com/CloudSnorkel/cloud-z

(v0.1.0)

A    Great!    Found 13 issues across 14 files

Tweet

gofmt92%

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


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!


golint7%

Golint is a linter for Go source code.

    • providers/azure.go
    • Line 10: warning: exported type AzureProvider should have comment or be unexported (golint)
    • Line 13: warning: exported method AzureProvider.Detect should have comment or be unexported (golint)
    • Line 27: warning: exported method AzureProvider.GetData should have comment or be unexported (golint)
    • providers/gcp.go
    • Line 10: warning: exported type GcpProvider should have comment or be unexported (golint)
    • Line 13: warning: exported method GcpProvider.Detect should have comment or be unexported (golint)
    • Line 35: warning: exported method GcpProvider.GetData should have comment or be unexported (golint)
    • providers/memory.go
    • Line 13: warning: comment on exported type MemoryDevice should be of the form "MemoryDevice ..." (with optional leading article) (golint)
    • Line 129: warning: exported function GetMemoryInfo should have comment or be unexported (golint)
    • metadata/metadata.go
    • Line 10: warning: exported function GetMetadataHeader should have comment or be unexported (golint)
    • Line 22: warning: error var UnauthorizedError should have name of the form ErrFoo (golint)
    • Line 22: warning: exported var UnauthorizedError should have comment or be unexported (golint)
    • Line 50: warning: exported function GetMetadataJson should have comment or be unexported (golint)
    • Line 60: warning: exported function GetMetadataText should have comment or be unexported (golint)
    • Line 76: warning: exported function PutMetadata should have comment or be unexported (golint)
    • benchmarks/fbench.go
    • Line 1: warning: package comment should be of the form "Package benchmarks ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 29: warning: should not use dot imports (golint)
    • Line 35: warning: don't use underscores in Go names; const max_surfaces should be maxSurfaces (golint)
    • Line 39: warning: don't use underscores in Go names; var current_surfaces should be currentSurfaces (golint)
    • Line 42: warning: don't use underscores in Go names; var clear_aperture should be clearAperture (golint)
    • Line 44: warning: don't use underscores in Go names; var aberr_lspher should be aberrLspher (golint)
    • Line 45: warning: don't use underscores in Go names; var aberr_osc should be aberrOsc (golint)
    • Line 46: warning: don't use underscores in Go names; var aberr_lchrom should be aberrLchrom (golint)
    • Line 48: warning: don't use underscores in Go names; var max_lspher should be maxLspher (golint)
    • Line 49: warning: don't use underscores in Go names; var max_osc should be maxOsc (golint)
    • Line 50: warning: don't use underscores in Go names; var max_lchrom should be maxLchrom (golint)
    • Line 52: warning: don't use underscores in Go names; var radius_of_curvature should be radiusOfCurvature (golint)
    • Line 53: warning: don't use underscores in Go names; var object_distance should be objectDistance (golint)
    • Line 54: warning: don't use underscores in Go names; var ray_height should be rayHeight (golint)
    • Line 55: warning: don't use underscores in Go names; var axis_slope_angle should be axisSlopeAngle (golint)
    • Line 56: warning: don't use underscores in Go names; var from_index should be fromIndex (golint)
    • Line 57: warning: don't use underscores in Go names; var to_index should be toIndex (golint)
    • Line 59: warning: don't use underscores in Go names; var spectral_line should be spectralLine (golint)
    • Line 61: warning: don't use underscores in Go names; var od_sa should be odSa (golint)
    • Line 71: warning: exported const ITERATIONS should have comment or be unexported (golint)
    • Line 138: warning: don't use underscores in Go names; func transit_surface should be transitSurface (golint)
    • Line 141: warning: don't use underscores in Go names; var iang_sin should be iangSin (golint)
    • Line 142: warning: don't use underscores in Go names; var rang_sin should be rangSin (golint)
    • Line 143: warning: don't use underscores in Go names; var old_axis_slope_angle should be oldAxisSlopeAngle (golint)
    • Line 206: warning: don't use underscores in Go names; func trace_line should be traceLine (golint)
    • Line 206: warning: don't use underscores in Go names; func parameter ray_h should be rayH (golint)
    • Line 235: warning: don't use underscores in Go names; var od_fline should be odFline (golint)
    • Line 236: warning: don't use underscores in Go names; var od_cline should be odCline (golint)
    • Line 379: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • providers/aws.go
    • Line 10: warning: exported type AwsProvider should have comment or be unexported (golint)
    • Line 15: warning: exported method AwsProvider.Detect should have comment or be unexported (golint)
    • Line 98: warning: exported method AwsProvider.GetData should have comment or be unexported (golint)
    • reporting/structs.go
    • Line 3: warning: exported type Report should have comment or be unexported (golint)
    • Line 16: warning: exported type CpuReport should have comment or be unexported (golint)
    • Line 34: warning: exported type MemoryReport should have comment or be unexported (golint)
    • Line 39: warning: exported type MemoryStickReport should have comment or be unexported (golint)
    • Line 48: warning: exported type UnitType should have comment or be unexported (golint)
    • Line 51: warning: exported const Seconds should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported type BenchmarkReport should have comment or be unexported (golint)
    • Line 60: warning: exported method Report.AddError should have comment or be unexported (golint)
    • reporting/print.go
    • Line 20: warning: exported method Report.Print should have comment or be unexported (golint)
    • Line 98: warning: exported method Report.PrintJson should have comment or be unexported (golint)
    • cmd/root.go
    • Line 62: warning: exported function Execute should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!