Preparing report...

Report for github.com/traefik/traefik

(v1.7.34)

A+    Excellent!    Found 29 issues across 323 files

Tweet

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!


gofmt98%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo92%

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.

    • configuration/configuration.go
    • Line 177: warning: cyclomatic complexity 53 of function (*GlobalConfiguration).SetEffectiveConfiguration() is high (> 15) (gocyclo)
    • Line 395: warning: cyclomatic complexity 16 of function (*GlobalConfiguration).initACMEProvider() is high (> 15) (gocyclo)
    • provider/kubernetes/kubernetes.go
    • Line 196: warning: cyclomatic complexity 48 of function (*Provider).loadIngresses() is high (> 15) (gocyclo)
    • Line 498: warning: cyclomatic complexity 22 of function (*Provider).addGlobalBackend() is high (> 15) (gocyclo)
    • server/server.go
    • Line 434: warning: cyclomatic complexity 21 of function (*Server).createTLSConfig() is high (> 15) (gocyclo)
    • acme/acme.go
    • Line 183: warning: cyclomatic complexity 16 of function (*ACME).leadershipListener() is high (> 15) (gocyclo)
    • provider/file/file.go
    • Line 210: warning: cyclomatic complexity 16 of function (*Provider).loadFileConfigFromDirectory() is high (> 15) (gocyclo)
    • types/types.go
    • Line 165: warning: cyclomatic complexity 21 of function (*Headers).HasSecureHeadersDefined() is high (> 15) (gocyclo)
    • Line 522: warning: cyclomatic complexity 17 of function (*ClientTLS).CreateTLSConfig() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!