Preparing report...

Report for github.com/nre-learning/antidote-core

A+    Excellent!    Found 26 issues across 90 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!


gocyclo93%

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.


golint82%

Golint is a linter for Go source code.

    • antidote-core/services/services.go
    • Line 5: warning: exported type AntidoteService should have comment or be unexported (golint)
    • Line 9: warning: exported type OperationType should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; const OperationType_CREATE should be OperationTypeCREATE (golint)
    • Line 12: warning: exported const OperationType_CREATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; const OperationType_DELETE should be OperationTypeDELETE (golint)
    • Line 14: warning: don't use underscores in Go names; const OperationType_MODIFY should be OperationTypeMODIFY (golint)
    • Line 15: warning: don't use underscores in Go names; const OperationType_BOOP should be OperationTypeBOOP (golint)
    • Line 21: warning: exported type LessonScheduleRequest should have comment or be unexported (golint)
    • antidote-core/pkg/apis/k8s.cni.cncf.io/v1/crd.go
    • Line 23: warning: exported const CRDPlural should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported function CreateCRD should be of the form "CreateCRD ..." (golint)
    • Line 53: warning: exported function NewClient should have comment or be unexported (golint)
    • antidote-core/db/models/livelesson.go
    • Line 59: warning: don't use underscores in Go names; const Status_INITIALIZED should be StatusINITIALIZED (golint)
    • Line 63: warning: don't use underscores in Go names; const Status_BOOTING should be StatusBOOTING (golint)
    • Line 69: warning: don't use underscores in Go names; const Status_CONFIGURATION should be StatusCONFIGURATION (golint)
    • Line 72: warning: don't use underscores in Go names; const Status_READY should be StatusREADY (golint)
    • antidote-core/pkg/apis/k8s.cni.cncf.io/v1/types.go
    • Line 44: warning: exported type NetworkAttachmentDefinition should have comment or be unexported (golint)
    • Line 55: warning: exported type NetworkAttachmentDefinitionList should have comment or be unexported (golint)
    • Line 63: warning: exported type NetworkSpec should have comment or be unexported (golint)
    • Line 71: warning: exported type NetworkNames should have comment or be unexported (golint)
    • Line 78: warning: exported type NetworkValidation should have comment or be unexported (golint)
    • Line 82: warning: exported type NetworkValidationSchema should have comment or be unexported (golint)
    • Line 86: warning: exported type NetworkValidationProperties should have comment or be unexported (golint)
    • Line 90: warning: exported type NetworkValidationSpec should have comment or be unexported (golint)
    • Line 94: warning: exported type NetworkValidationSpecProperties should have comment or be unexported (golint)
    • Line 98: warning: exported type NetworkValidationConfig should have comment or be unexported (golint)
    • Line 104: warning: exported type NetworkList should have comment or be unexported (golint)
    • antidote-core/config/config.go
    • Line 13: warning: exported type AntidoteConfig should have comment or be unexported (golint)
    • Line 76: warning: exported type KubernetesConfig should have comment or be unexported (golint)
    • Line 94: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 150: warning: exported method AntidoteConfig.JSON should have comment or be unexported (golint)
    • antidote-core/services/utils.go
    • Line 5: warning: comment on exported type UULLID should be of the form "UULLID ..." (with optional leading article) (golint)
    • Line 14: warning: exported function NewUULLID should have comment or be unexported (golint)
    • Line 18: warning: exported method UULLID.ToString should have comment or be unexported (golint)
    • antidote-core/scheduler/backends/kubernetes/kubernetes.go
    • Line 39: warning: exported type KubernetesBackend should have comment or be unexported (golint)
    • Line 56: warning: exported function NewKubernetesBackend should have comment or be unexported (golint)
    • Line 117: warning: exported method KubernetesBackend.HandleRequestCREATE should have comment or be unexported (golint)
    • Line 185: warning: exported method KubernetesBackend.HandleRequestMODIFY should have comment or be unexported (golint)
    • antidote-core/db/models/lesson.go
    • Line 51: warning: exported type LessonGuideType should have comment or be unexported (golint)
    • Line 54: warning: exported const GuideMarkdown should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: don't use underscores in Go names; const PresentationType_http should be PresentationTypeHTTP (golint)
    • Line 102: warning: don't use underscores in Go names; const PresentationType_ssh should be PresentationTypeSSH (golint)
    • antidote-core/db/models/image.go
    • Line 36: warning: exported type ImageFlavor should have comment or be unexported (golint)
    • Line 39: warning: exported const FlavorLegacy should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell96%

Misspell Finds commonly misspelled English words