Preparing report...

Report for github.com/grid-x/mender-artifact

(v0.0.0-20241016071718-0f1f1270e5c8)

A+    Excellent!    Found 16 issues across 86 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!


gofmt97%

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


gocyclo91%

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.

    • cli/copy.go
    • Line 68: warning: cyclomatic complexity 18 of function Copy() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 17 of function Install() is high (> 15) (gocyclo)
    • cli/copy_test.go
    • Line 153: warning: cyclomatic complexity 26 of function TestCopyRootfsImage() is high (> 15) (gocyclo)
    • cli/write.go
    • Line 472: warning: cyclomatic complexity 20 of function makeTypeInfo() is high (> 15) (gocyclo)
    • Line 253: warning: cyclomatic complexity 17 of function writeRootfs() is high (> 15) (gocyclo)
    • Line 858: warning: cyclomatic complexity 16 of function getDeviceSnapshot() is high (> 15) (gocyclo)

ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • cli/sign_test.go
    • Line 154: warning: ineffectual assignment to err (ineffassign)
    • Line 218: warning: ineffectual assignment to err (ineffassign)
    • Line 356: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words