Preparing report...

Report for github.com/wayf-dk/wayfhybrid

C    Needs some work    Found 7 issues across 4 files

Tweet

gofmt50%

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!


gocyclo50%

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.

    • wayfhybrid/wayfhybrid.go
    • Line 507: warning: cyclomatic complexity 28 of function testSPService() is high (> 15) (gocyclo)
    • Line 1018: warning: cyclomatic complexity 24 of function ACSService() is high (> 15) (gocyclo)
    • Line 1254: warning: cyclomatic complexity 18 of function SLOService() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • wayfhybrid/wayfhybrid.go
    • Line 65: warning: exported type Conf should have comment or be unexported (golint)
    • Line 317: warning: exported function Env should have comment or be unexported (golint)
    • Line 437: warning: exported function PProf should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign-25%

IneffAssign detects ineffectual assignments in Go code.

    • wayfhybrid/wayfhybrid_test.go
    • Line 25: warning: undeclared name: Md (ineffassign)
    • Line 26: warning: undeclared name: Md (ineffassign)
    • Line 27: warning: undeclared name: Md (ineffassign)
    • Line 28: warning: undeclared name: Md (ineffassign)
    • Line 30: warning: undeclared name: Md (ineffassign)
    • Line 30: warning: undeclared name: Md (ineffassign)
    • Line 30: warning: undeclared name: Md (ineffassign)
    • Line 30: warning: undeclared name: Md (ineffassign)
    • Line 62: warning: undeclared name: checkScope (ineffassign)
    • Line 189: warning: undeclared name: prepareTables (ineffassign)
    • Line 191: warning: undeclared name: WayfACSServiceHandler (ineffassign)
    • Line 193: warning: too few arguments in call to CopyAttributes (ineffassign)
    • Line 244: warning: undeclared name: prepareTables (ineffassign)
    • Line 248: warning: undeclared name: WayfACSServiceHandler (ineffassign)
    • Line 309: warning: undeclared name: prepareTables (ineffassign)
    • Line 311: warning: undeclared name: WayfACSServiceHandler (ineffassign)
    • Line 397: warning: too many arguments (ineffassign)
    • Line 407: warning: too many arguments (ineffassign)
    • Line 416: warning: undeclared name: setAttribute (ineffassign)
    • Line 417: warning: undeclared name: setAttribute (ineffassign)
    • Line 427: warning: undeclared name: prepareTables (ineffassign)
    • Line 428: warning: undeclared name: handleAttributeNameFormat (ineffassign)
    • Line 434: warning: undeclared name: debify (ineffassign)
    • Line 435: warning: undeclared name: debify (ineffassign)
    • Line 436: warning: undeclared name: debify (ineffassign)
    • Line 437: warning: undeclared name: debify (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!