Preparing report...

Report for github.com/deqode/GoArcc

A+    Excellent!    Found 38 issues across 67 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!


golint64%

Golint is a linter for Go source code.

    • GoArcc/util/userinfo/userinfo.go
    • Line 11: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 18: warning: exported type ValidateUserInfo should have comment or be unexported (golint)
    • Line 38: warning: exported function GetClientIP should have comment or be unexported (golint)
    • Line 45: warning: exported function NewContextWithClientIP should have comment or be unexported (golint)
    • Line 49: warning: exported function NewContextForGrpcCall should have comment or be unexported (golint)
    • Line 53: warning: exported function IsGrpcCall should have comment or be unexported (golint)
    • Line 60: warning: exported function WithClaims should have comment or be unexported (golint)
    • Line 70: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 76: warning: exported function FromClaims should have comment or be unexported (golint)
    • GoArcc/config/config.go
    • Line 14: warning: exported type FileInformation should have comment or be unexported (golint)
    • Line 35: warning: exported type CadenceConfig should have comment or be unexported (golint)
    • Line 167: warning: exported function GetConfigDirectory should have comment or be unexported (golint)
    • Line 174: warning: exported function RootDir should have comment or be unexported (golint)
    • GoArcc/servers/grpc/middleware/auth.go
    • Line 26: warning: exported type Config should have comment or be unexported (golint)
    • Line 46: warning: exported function AuthMiddleware should have comment or be unexported (golint)
    • Line 88: warning: exported type DiscoveryResponse should have comment or be unexported (golint)
    • Line 160: warning: exported function VerifyToken should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign70%

IneffAssign detects ineffectual assignments in Go code.

    • GoArcc/servers/rest/register.go
    • Line 6: warning: no required module provides package github.com/deqode/GoArcc/modules/authentication/v1/pb; to add it: (ineffassign)
    • Line 7: warning: no required module provides package github.com/deqode/GoArcc/modules/user-profile/v1/pb; to add it: (ineffassign)
    • Line 6: warning: could not import github.com/deqode/GoArcc/modules/authentication/v1/pb (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/deqode/GoArcc/modules/user-profile/v1/pb (invalid package name: "") (ineffassign)
    • GoArcc/servers/grpc/middleware/auth.go
    • Line 18: warning: no required module provides package github.com/deqode/GoArcc/util/userinfo; to add it: (ineffassign)
    • Line 18: warning: could not import github.com/deqode/GoArcc/util/userinfo (invalid package name: "") (ineffassign)
    • Line 18: warning: no required module provides package github.com/deqode/GoArcc/util/userinfo; to add it: (ineffassign)
    • Line 18: warning: could not import github.com/deqode/GoArcc/util/userinfo (invalid package name: "") (ineffassign)
    • GoArcc/servers/graphql/register.go
    • Line 5: warning: no required module provides package github.com/deqode/GoArcc/modules/user-profile/v1/pb; to add it: (ineffassign)
    • Line 5: warning: could not import github.com/deqode/GoArcc/modules/user-profile/v1/pb (invalid package name: "") (ineffassign)
    • GoArcc/servers/grpc/register.go
    • Line 5: warning: no required module provides package github.com/deqode/GoArcc/modules/authentication/v1/external-svc; to add it: (ineffassign)
    • Line 6: warning: no required module provides package github.com/deqode/GoArcc/modules/authentication/v1/pb; to add it: (ineffassign)
    • Line 7: warning: no required module provides package github.com/deqode/GoArcc/modules/user-profile/v1/external-svc; to add it: (ineffassign)
    • Line 8: warning: no required module provides package github.com/deqode/GoArcc/modules/user-profile/v1/pb; to add it: (ineffassign)
    • Line 5: warning: could not import github.com/deqode/GoArcc/modules/authentication/v1/external-svc (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/deqode/GoArcc/modules/authentication/v1/pb (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/deqode/GoArcc/modules/user-profile/v1/external-svc (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/deqode/GoArcc/modules/user-profile/v1/pb (invalid package name: "") (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/deqode/GoArcc/modules/user-profile/v1/models/user_profile.go
    • Line 5: warning: no required module provides package github.com/deqode/GoArcc/protos/types; to add it: (ineffassign)
    • Line 5: warning: could not import github.com/deqode/GoArcc/protos/types (invalid package name: "") (ineffassign)
    • Line 5: warning: no required module provides package github.com/deqode/GoArcc/protos/types; to add it: (ineffassign)
    • Line 4: warning: could not import github.com/deqode/GoArcc/logger (no metadata for github.com/deqode/GoArcc/logger) (ineffassign)
    • Line 5: warning: could not import github.com/deqode/GoArcc/protos/types (no metadata for github.com/deqode/GoArcc/protos/types) (ineffassign)
    • Line 6: warning: could not import go.uber.org/zap (no metadata for go.uber.org/zap) (ineffassign)
    • Line 7: warning: could not import gorm.io/gorm (no metadata for gorm.io/gorm) (ineffassign)
    • Line 8: warning: could not import time (no metadata for time) (ineffassign)
    • Line 19: warning: undeclared name: types (ineffassign)
    • Line 5: warning: no required module provides package github.com/deqode/GoArcc/protos/types; to add it: (ineffassign)
    • Line 5: warning: could not import github.com/deqode/GoArcc/protos/types (invalid package name: "") (ineffassign)
    • Line 5: warning: no required module provides package github.com/deqode/GoArcc/protos/types; to add it: (ineffassign)
    • Line 4: warning: could not import github.com/deqode/GoArcc/logger (no metadata for github.com/deqode/GoArcc/logger) (ineffassign)
    • Line 5: warning: could not import github.com/deqode/GoArcc/protos/types (no metadata for github.com/deqode/GoArcc/protos/types) (ineffassign)
    • Line 6: warning: could not import go.uber.org/zap (no metadata for go.uber.org/zap) (ineffassign)
    • Line 7: warning: could not import gorm.io/gorm (no metadata for gorm.io/gorm) (ineffassign)
    • Line 8: warning: could not import time (no metadata for time) (ineffassign)
    • Line 19: warning: undeclared name: types (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!