Preparing report...

Report for github.com/candig/go-model-service

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


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign45%

IneffAssign detects ineffectual assignments in Go code.

    • go-model-service/model-vs/api/restapi/configure_variant_service.go
    • Line 13: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/restapi/operations (invalid package name: "") (ineffassign)
    • Line 41: warning: GetCalls not declared by package handlers (ineffassign)
    • Line 44: warning: GetIndividuals not declared by package handlers (ineffassign)
    • Line 50: warning: GetOneCall not declared by package handlers (ineffassign)
    • Line 53: warning: GetOneIndividual not declared by package handlers (ineffassign)
    • Line 56: warning: GetOneVariant not declared by package handlers (ineffassign)
    • Line 59: warning: GetVariants not declared by package handlers (ineffassign)
    • Line 65: warning: PostCall not declared by package handlers (ineffassign)
    • Line 68: warning: PostIndividual not declared by package handlers (ineffassign)
    • Line 71: warning: PostVariant not declared by package handlers (ineffassign)
    • go-model-service/model-vs/api/restapi/utilities/queries.go
    • Line 5: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/models; to add it: (ineffassign)
    • Line 6: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/restapi/operations; to add it: (ineffassign)
    • Line 5: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/restapi/operations (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/restapi/operations (invalid package name: "") (ineffassign)
    • go-model-service/model-vs/api/generics/generic_get_by.go
    • Line 4: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/models; to add it: (ineffassign)
    • Line 5: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/restapi/operations; to add it: (ineffassign)
    • Line 4: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/restapi/operations (invalid package name: "") (ineffassign)
    • Line 20: warning: GetVariantByID not declared by package utilities (ineffassign)
    • go-model-service/model-vs/api/restapi/handlers/get_by.go
    • Line 7: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/models; to add it: (ineffassign)
    • Line 9: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/restapi/operations; to add it: (ineffassign)
    • Line 7: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/restapi/operations (invalid package name: "") (ineffassign)
    • Line 28: warning: GetVariantByID not declared by package utilities (ineffassign)
    • Line 47: warning: undeclared name: individualDataToAPIModel (ineffassign)
    • Line 64: warning: GetIndividualByID not declared by package utilities (ineffassign)
    • Line 83: warning: undeclared name: variantDataToAPIModel (ineffassign)
    • Line 7: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/models; to add it: (ineffassign)
    • Line 9: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/restapi/operations; to add it: (ineffassign)
    • Line 7: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/restapi/operations (invalid package name: "") (ineffassign)
    • go-model-service/model-vs/errors/default_errors.go
    • Line 9: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/models; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)
    • go-model-service/model-vs/transformers/call.go
    • Line 6: warning: no required module provides package github.com/CanDIG/go-model-service/model-vs/api/models; to add it: (ineffassign)
    • Line 6: warning: could not import github.com/CanDIG/go-model-service/model-vs/api/models (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!