Preparing report...

Report for github.com/stakater/xposer

A+    Excellent!    Found 15 issues across 22 files

Tweet

gofmt95%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint36%

Golint is a linter for Go source code.

    • xposer/internal/pkg/templates/url.go
    • Line 10: warning: exported type URLTemplate should have comment or be unexported (golint)
    • Line 16: warning: exported function CreateUrlTemplate should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseIngressURLOrPathTemplate should have comment or be unexported (golint)
    • xposer/internal/pkg/templates/secrets.go
    • Line 12: warning: exported type SecretTemplate should have comment or be unexported (golint)
    • Line 17: warning: exported function CreateSecretTemplate should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseIngressSecretTemplate should have comment or be unexported (golint)
    • xposer/internal/pkg/templates/name.go
    • Line 12: warning: exported type NameTemplate should have comment or be unexported (golint)
    • Line 17: warning: exported function CreateNameTemplate should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseIngressNameTemplate should have comment or be unexported (golint)
    • xposer/internal/pkg/ingresses/utils.go
    • Line 10: warning: comment on exported function AppendSlashInPathAnnotationIfNotPresent should be of the form "AppendSlashInPathAnnotationIfNotPresent ..." (golint)
    • Line 21: warning: comment on exported function CreateForwardAnnotationsMap should be of the form "CreateForwardAnnotationsMap ..." (golint)
    • xposer/internal/pkg/ingresses/ingress.go
    • Line 13: warning: exported function CreateFromIngressInfo should have comment or be unexported (golint)
    • Line 47: warning: exported function IsEmpty should have comment or be unexported (golint)
    • Line 55: warning: exported function GetFromListMatchingGivenServiceName should have comment or be unexported (golint)
    • Line 69: warning: exported function AddTLSInfo should have comment or be unexported (golint)
    • Line 77: warning: exported function AddTLSInfoTemplate should have comment or be unexported (golint)
    • Line 86: warning: exported function ShouldAddTLS should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!