Preparing report...

Report for code.sajari.com/sdk-go

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


gocyclo92%

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.

    • /code.sajari.com/sdk-go/internal/openapi/api_collections.go
    • Line 72: warning: cyclomatic complexity 25 of function (*CollectionsApiService).CreateCollectionExecute() is high (> 15) (gocyclo)
    • Line 563: warning: cyclomatic complexity 21 of function (*CollectionsApiService).ListCollectionsExecute() is high (> 15) (gocyclo)
    • Line 910: warning: cyclomatic complexity 21 of function (*CollectionsApiService).UpdateCollectionExecute() is high (> 15) (gocyclo)
    • Line 743: warning: cyclomatic complexity 20 of function (*CollectionsApiService).QueryCollectionExecute() is high (> 15) (gocyclo)
    • Line 253: warning: cyclomatic complexity 19 of function (*CollectionsApiService).DeleteCollectionExecute() is high (> 15) (gocyclo)
    • Line 404: warning: cyclomatic complexity 19 of function (*CollectionsApiService).GetCollectionExecute() is high (> 15) (gocyclo)
    • /code.sajari.com/sdk-go/internal/openapi/api_pipelines.go
    • Line 940: warning: cyclomatic complexity 22 of function (*PipelinesApiService).ListPipelinesExecute() is high (> 15) (gocyclo)
    • Line 1292: warning: cyclomatic complexity 20 of function (*PipelinesApiService).SetDefaultVersionExecute() is high (> 15) (gocyclo)
    • Line 593: warning: cyclomatic complexity 20 of function (*PipelinesApiService).GetDefaultVersionExecute() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 20 of function (*PipelinesApiService).GetDefaultPipelineExecute() is high (> 15) (gocyclo)
    • Line 767: warning: cyclomatic complexity 20 of function (*PipelinesApiService).GetPipelineExecute() is high (> 15) (gocyclo)
    • Line 246: warning: cyclomatic complexity 20 of function (*PipelinesApiService).GeneratePipelinesExecute() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 20 of function (*PipelinesApiService).CreatePipelineExecute() is high (> 15) (gocyclo)
    • Line 1118: warning: cyclomatic complexity 20 of function (*PipelinesApiService).SetDefaultPipelineExecute() is high (> 15) (gocyclo)
    • /code.sajari.com/sdk-go/internal/openapi/api_schema.go
    • Line 395: warning: cyclomatic complexity 21 of function (*SchemaApiService).ListSchemaFieldsExecute() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 20 of function (*SchemaApiService).BatchCreateSchemaFieldsExecute() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 20 of function (*SchemaApiService).CreateSchemaFieldExecute() is high (> 15) (gocyclo)
    • /code.sajari.com/sdk-go/internal/openapi/api_records.go
    • Line 228: warning: cyclomatic complexity 20 of function (*RecordsApiService).DeleteRecordExecute() is high (> 15) (gocyclo)
    • Line 576: warning: cyclomatic complexity 20 of function (*RecordsApiService).UpsertRecordExecute() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 20 of function (*RecordsApiService).BatchUpsertRecordsExecute() is high (> 15) (gocyclo)
    • Line 390: warning: cyclomatic complexity 20 of function (*RecordsApiService).GetRecordExecute() is high (> 15) (gocyclo)

golint98%

Golint is a linter for Go source code.

    • /code.sajari.com/sdk-go/internal/protoutil/protoutil.go
    • Line 12: warning: exported function FromProto should have comment or be unexported (golint)
    • Line 25: warning: exported function Single should have comment or be unexported (golint)
    • Line 40: warning: exported function Value should have comment or be unexported (golint)
    • Line 113: warning: exported function Values should have comment or be unexported (golint)
    • Line 125: warning: exported function Map should have comment or be unexported (golint)
    • Line 137: warning: exported function Struct 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!