Preparing report...

Report for github.com/XenitAB/git-auth-proxy

(v0.5.2)

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


golint60%

Golint is a linter for Go source code.

    • pkg/config/config.go
    • Line 15: warning: exported type ProviderType should have comment or be unexported (golint)
    • Line 18: warning: exported const AzureDevOpsProviderType should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 26: warning: exported type Organization should have comment or be unexported (golint)
    • Line 36: warning: exported method Organization.GetSecretName should have comment or be unexported (golint)
    • Line 50: warning: exported type AzureDevOps should have comment or be unexported (golint)
    • Line 54: warning: exported type GitHub should have comment or be unexported (golint)
    • Line 60: warning: exported type Repository should have comment or be unexported (golint)
    • pkg/token/token_writer.go
    • Line 30: warning: exported type TokenWriter should have comment or be unexported (golint)
    • Line 36: warning: exported function NewTokenWriter should have comment or be unexported (golint)
    • Line 44: warning: exported method TokenWriter.Start should have comment or be unexported (golint)
    • pkg/server/server.go
    • Line 17: warning: exported type Server should have comment or be unexported (golint)
    • Line 22: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 24: warning: don't use underscores in Go names; var prometheus_mdlw should be prometheusMdlw (golint)
    • Line 41: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • Line 45: warning: exported method Server.Shutdown should have comment or be unexported (golint)
    • pkg/auth/auth.go
    • Line 14: warning: exported type Provider should have comment or be unexported (golint)
    • Line 21: warning: exported type Authorizer should have comment or be unexported (golint)
    • Line 28: warning: exported function NewAuthorizer should have comment or be unexported (golint)
    • Line 93: warning: exported method Authorizer.GetEndpoints should have comment or be unexported (golint)
    • Line 97: warning: exported method Authorizer.GetEndpointById should have comment or be unexported (golint)
    • Line 105: warning: exported method Authorizer.GetEndpointByToken should have comment or be unexported (golint)
    • Line 113: warning: exported method Authorizer.IsPermitted should have comment or be unexported (golint)
    • Line 126: warning: exported method Authorizer.UpdateRequest should have comment or be unexported (golint)
    • pkg/auth/endpoint.go
    • Line 8: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 21: warning: exported method Endpoint.ID 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!