Preparing report...

Report for github.com/DataDog/go-tuf

(v0.5.2)

A+    Excellent!    Found 5 issues across 88 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!


gofmt100%

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

No problems detected. Good job!


gocyclo95%

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.

    • local_store.go
    • Line 386: warning: cyclomatic complexity 24 of function (*fileSystemStore).Commit() is high (> 15) (gocyclo)
    • Line 582: warning: cyclomatic complexity 16 of function (*fileSystemStore).SaveSigner() is high (> 15) (gocyclo)
    • repo.go
    • Line 1488: warning: cyclomatic complexity 19 of function (*Repo).Commit() is high (> 15) (gocyclo)
    • Line 512: warning: cyclomatic complexity 16 of function (*Repo).RevokeKeyWithExpires() is high (> 15) (gocyclo)
    • client/client.go
    • Line 205: warning: cyclomatic complexity 18 of function (*Client).UpdateRoots() is high (> 15) (gocyclo)
    • Line 373: warning: cyclomatic complexity 17 of function (*Client).getLocalMeta() is high (> 15) (gocyclo)
    • repo_test.go
    • Line 347: warning: cyclomatic complexity 16 of function (*RepoSuite).TestAddPrivateKey() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • repo.go
    • Line 492: warning: ineffectual assignment to found (ineffassign)
    • Line 492: warning: ineffectual assignment to found (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words

    • repo.go
    • Line 1168: warning: "commited" is a misspelling of "committed" (misspell)