Preparing report...

Report for github.com/kong/deck

A+    Excellent!    Found 22 issues across 161 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!


golint86%

Golint is a linter for Go source code.

    • deck/dump/dump_konnect.go
    • Line 14: warning: exported type KonnectConfig should have comment or be unexported (golint)
    • Line 19: warning: exported function GetFromKonnect should have comment or be unexported (golint)
    • deck/dump/dump.go
    • Line 705: warning: exported function GetAllRBACREndpointPermissions should have comment or be unexported (golint)
    • deck/utils/types.go
    • Line 99: warning: exported type KonnectConfig should have comment or be unexported (golint)
    • Line 182: warning: exported function GetKonnectClient should have comment or be unexported (golint)
    • deck/konnect/control_plane_relations_service.go
    • Line 10: warning: exported type ControlPlaneRelationsService should have comment or be unexported (golint)
    • Line 12: warning: exported type ControlPlaneServiceRelationCreateRequest should have comment or be unexported (golint)
    • Line 18: warning: exported type ControlPlaneServiceRelationUpdateRequest should have comment or be unexported (golint)
    • deck/konnect/login_service.go
    • Line 10: warning: exported type AuthService should have comment or be unexported (golint)
    • Line 12: warning: exported method AuthService.Login should have comment or be unexported (golint)
    • deck/types/core.go
    • Line 12: warning: exported type Differ should have comment or be unexported (golint)
    • Line 17: warning: exported type Entity should have comment or be unexported (golint)
    • Line 47: warning: exported type EntityOpts should have comment or be unexported (golint)
    • Line 130: warning: exported function NewEntity should have comment or be unexported (golint)
    • deck/utils/counter.go
    • Line 5: warning: exported type AtomicInt32Counter should have comment or be unexported (golint)
    • Line 10: warning: exported method AtomicInt32Counter.Increment should have comment or be unexported (golint)
    • Line 16: warning: exported method AtomicInt32Counter.Count should have comment or be unexported (golint)
    • deck/convert/convert.go
    • Line 12: warning: exported type Format should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseFormat should have comment or be unexported (golint)
    • Line 36: warning: exported function Convert should have comment or be unexported (golint)
    • deck/konnect/types.go
    • Line 11: warning: exported type ParentInfoer should have comment or be unexported (golint)
    • Line 16: warning: exported function BaseURL should have comment or be unexported (golint)
    • Line 31: warning: exported method ServicePackage.URL should have comment or be unexported (golint)
    • Line 35: warning: exported method ServicePackage.Key should have comment or be unexported (golint)
    • Line 50: warning: exported method ServiceVersion.URL should have comment or be unexported (golint)
    • Line 54: warning: exported method ServiceVersion.Key should have comment or be unexported (golint)
    • Line 58: warning: exported type Document should have comment or be unexported (golint)
    • Line 66: warning: exported method Document.ParentKey should have comment or be unexported (golint)
    • deck/utils/zero.go
    • Line 22: warning: exported function ZeroOutID should have comment or be unexported (golint)
    • Line 35: warning: exported function ZeroOutTimestamps should have comment or be unexported (golint)
    • deck/file/writer.go
    • Line 86: warning: exported function KonnectStateToFile should have comment or be unexported (golint)
    • Line 608: warning: exported function WriteContentToFile should have comment or be unexported (golint)

gocyclo97%

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.

    • deck/diff/diff.go
    • Line 278: warning: cyclomatic complexity 22 of function (*Syncer).createUpdate() is high (> 15) (gocyclo)
    • Line 143: warning: cyclomatic complexity 22 of function (*Syncer).delete() is high (> 15) (gocyclo)

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!