Preparing report...

Report for clouditor.io/clouditor

A+    Excellent!    Found 19 issues across 25 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!


golint28%

Golint is a linter for Go source code.

    • /clouditor.io/clouditor/voc/encryption.go
    • Line 28: warning: exported type IsEncryption should have comment or be unexported (golint)
    • Line 34: warning: exported type Encryption should have comment or be unexported (golint)
    • Line 38: warning: exported method Encryption.IsEnabled should have comment or be unexported (golint)
    • Line 46: warning: exported type AtRestEncryption should have comment or be unexported (golint)
    • Line 52: warning: exported function NewAtRestEncryption should have comment or be unexported (golint)
    • Line 60: warning: exported type TransportEncryption should have comment or be unexported (golint)
    • Line 66: warning: exported function NewTransportEncryption should have comment or be unexported (golint)
    • /clouditor.io/clouditor/voc/storage.go
    • Line 32: warning: exported type IsResource should have comment or be unexported (golint)
    • Line 38: warning: exported type Resource should have comment or be unexported (golint)
    • Line 44: warning: exported method Resource.GetID should have comment or be unexported (golint)
    • Line 48: warning: exported method Resource.GetName should have comment or be unexported (golint)
    • Line 52: warning: exported method Resource.GetCreationTime should have comment or be unexported (golint)
    • Line 57: warning: exported type HasAtRestEncryption should have comment or be unexported (golint)
    • Line 61: warning: exported type HasHttpEndpoint should have comment or be unexported (golint)
    • Line 65: warning: exported type IsStorage should have comment or be unexported (golint)
    • Line 71: warning: exported type StorageResource should have comment or be unexported (golint)
    • Line 77: warning: exported method StorageResource.GetAtRestEncryption should have comment or be unexported (golint)
    • Line 81: warning: exported type IsObjectStorage should have comment or be unexported (golint)
    • Line 86: warning: exported type ObjectStorageResource should have comment or be unexported (golint)
    • Line 92: warning: exported type BlockStorageResource should have comment or be unexported (golint)
    • /clouditor.io/clouditor/cli/session.go
    • Line 47: warning: exported type Session should have comment or be unexported (golint)
    • Line 54: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 60: warning: exported function ContinueSession should have comment or be unexported (golint)
    • Line 145: warning: exported function PromtForLogin should have comment or be unexported (golint)
    • Line 182: warning: exported method Session.AuthenticatedContext should have comment or be unexported (golint)
    • Line 191: warning: exported function DefaultArgsShellComp should have comment or be unexported (golint)
    • Line 195: warning: exported function ValidArgsGetTools should have comment or be unexported (golint)
    • Line 203: warning: exported function ValidArgsGetMetrics 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!


misspell92%

Misspell Finds commonly misspelled English words