Preparing report...

Report for github.com/wayf-dk/godiscoveryservice

C    Needs some work    Found 1 issues across 2 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.


golint50%

Golint is a linter for Go source code.

    • godiscoveryservice/discoveryservice.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 67: warning: exported function MetadataUpdated should have comment or be unexported (golint)
    • Line 167: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • godiscoveryservice/discoveryservice.go
    • Line 9: warning: no required module provides package github.com/mattn/go-sqlite3; to add it: (ineffassign)
    • Line 10: warning: no required module provides package github.com/wayf-dk/gosaml; to add it: (ineffassign)
    • Line 11: warning: no required module provides package github.com/wayf-dk/goxml; to add it: (ineffassign)
    • Line 16: warning: no required module provides package x.config; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/mattn/go-sqlite3 (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/wayf-dk/gosaml (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/wayf-dk/goxml (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import x.config (invalid package name: "") (ineffassign)
    • Line 103: warning: undeclared name: config (ineffassign)
    • Line 110: warning: undeclared name: config (ineffassign)
    • Line 16: warning: "x.config" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!