Preparing report...

Report for github.com/kmodules/objectstore-api

A+    Excellent!    Found 6 issues across 10 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!


gocyclo90%

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.


golint40%

Golint is a linter for Go source code.

    • objectstore-api/api/v1/types.go
    • Line 24: warning: comment on exported const AWS_ACCESS_KEY_ID should be of the form "AWS_ACCESS_KEY_ID ..." (golint)
    • Line 26: warning: comment on exported const AWS_SECRET_ACCESS_KEY should be of the form "AWS_SECRET_ACCESS_KEY ..." (golint)
    • Line 28: warning: comment on exported const CA_CERT_DATA should be of the form "CA_CERT_DATA ..." (golint)
    • Line 31: warning: comment on exported const GOOGLE_PROJECT_ID should be of the form "GOOGLE_PROJECT_ID ..." (golint)
    • Line 33: warning: comment on exported const GOOGLE_SERVICE_ACCOUNT_JSON_KEY should be of the form "GOOGLE_SERVICE_ACCOUNT_JSON_KEY ..." (golint)
    • Line 35: warning: comment on exported const GOOGLE_APPLICATION_CREDENTIALS should be of the form "GOOGLE_APPLICATION_CREDENTIALS ..." (golint)
    • Line 38: warning: comment on exported const AZURE_ACCOUNT_NAME should be of the form "AZURE_ACCOUNT_NAME ..." (golint)
    • Line 40: warning: comment on exported const AZURE_ACCOUNT_KEY should be of the form "AZURE_ACCOUNT_KEY ..." (golint)
    • Line 43: warning: comment on exported const OS_USERNAME should be of the form "OS_USERNAME ..." (golint)
    • Line 46: warning: comment on exported const OS_PASSWORD should be of the form "OS_PASSWORD ..." (golint)
    • Line 48: warning: comment on exported const OS_REGION_NAME should be of the form "OS_REGION_NAME ..." (golint)
    • Line 50: warning: comment on exported const OS_AUTH_URL should be of the form "OS_AUTH_URL ..." (golint)
    • Line 53: warning: comment on exported const OS_USER_DOMAIN_NAME should be of the form "OS_USER_DOMAIN_NAME ..." (golint)
    • Line 56: warning: comment on exported const OS_PROJECT_NAME should be of the form "OS_PROJECT_NAME ..." (golint)
    • Line 58: warning: comment on exported const OS_PROJECT_DOMAIN_NAME should be of the form "OS_PROJECT_DOMAIN_NAME ..." (golint)
    • Line 61: warning: comment on exported const OS_TENANT_ID should be of the form "OS_TENANT_ID ..." (golint)
    • Line 64: warning: comment on exported const OS_TENANT_NAME should be of the form "OS_TENANT_NAME ..." (golint)
    • Line 67: warning: comment on exported const ST_AUTH should be of the form "ST_AUTH ..." (golint)
    • Line 70: warning: comment on exported const ST_USER should be of the form "ST_USER ..." (golint)
    • Line 72: warning: comment on exported const ST_KEY should be of the form "ST_KEY ..." (golint)
    • Line 75: warning: comment on exported const OS_STORAGE_URL should be of the form "OS_STORAGE_URL ..." (golint)
    • Line 78: warning: comment on exported const OS_AUTH_TOKEN should be of the form "OS_AUTH_TOKEN ..." (golint)
    • Line 82: warning: exported type Backend should have comment or be unexported (golint)
    • Line 94: warning: exported type LocalSpec should have comment or be unexported (golint)
    • Line 100: warning: exported type S3Spec should have comment or be unexported (golint)
    • Line 107: warning: exported type GCSSpec should have comment or be unexported (golint)
    • Line 113: warning: exported type AzureSpec should have comment or be unexported (golint)
    • Line 119: warning: exported type SwiftSpec should have comment or be unexported (golint)
    • Line 124: warning: exported type B2Spec should have comment or be unexported (golint)
    • Line 130: warning: exported type RestServerSpec should have comment or be unexported (golint)
    • objectstore-api/osm/lib.go
    • Line 33: warning: exported type Context should have comment or be unexported (golint)
    • Line 39: warning: exported type OSMConfig should have comment or be unexported (golint)
    • Line 44: warning: exported function GetConfigPath should have comment or be unexported (golint)
    • Line 52: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 74: warning: exported method OSMConfig.Save should have comment or be unexported (golint)
    • Line 89: warning: exported method OSMConfig.Dial should have comment or be unexported (golint)
    • Line 102: warning: exported method OSMConfig.Context should have comment or be unexported (golint)
    • objectstore-api/osm/osm.go
    • Line 56: warning: exported const SecretMountPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: exported function NewOSMSecret should have comment or be unexported (golint)
    • Line 110: warning: exported function WriteOSMConfig should have comment or be unexported (golint)
    • Line 146: warning: exported function CheckBucketAccess should have comment or be unexported (golint)
    • Line 166: warning: exported function NewOSMContext 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!