Preparing report...

Report for github.com/clearlinux/mixer-tools

A+    Excellent!    Found 24 issues across 79 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo69%

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.

    • mixer-tools/builder/bundle_control.go
    • Line 607: warning: cyclomatic complexity 33 of function (*Builder).ListBundles() is high (> 15) (gocyclo)
    • Line 361: warning: cyclomatic complexity 22 of function (*Builder).AddBundles() is high (> 15) (gocyclo)
    • Line 467: warning: cyclomatic complexity 17 of function (*Builder).RemoveBundles() is high (> 15) (gocyclo)
    • mixer-tools/builder/build_validate.go
    • Line 1171: warning: cyclomatic complexity 26 of function printMcaResults() is high (> 15) (gocyclo)
    • Line 1047: warning: cyclomatic complexity 25 of function checkMcaFbErrors() is high (> 15) (gocyclo)
    • Line 349: warning: cyclomatic complexity 20 of function (*Builder).resolveBundlePkgInfos() is high (> 15) (gocyclo)
    • Line 975: warning: cyclomatic complexity 17 of function diffResultLists() is high (> 15) (gocyclo)
    • mixer-tools/builder/bundles.go
    • Line 640: warning: cyclomatic complexity 25 of function installBundleToFull() is high (> 15) (gocyclo)
    • Line 972: warning: cyclomatic complexity 22 of function (*Builder).buildBundles() is high (> 15) (gocyclo)
    • Line 867: warning: cyclomatic complexity 22 of function addBundleContentChroots() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 20 of function resolvePackagesWithOptions() is high (> 15) (gocyclo)
    • mixer-tools/swupd/fullfiles.go
    • Line 51: warning: cyclomatic complexity 25 of function CreateFullfiles() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 20 of function createRegularFullfile() is high (> 15) (gocyclo)
    • mixer-tools/builder/builder.go
    • Line 127: warning: cyclomatic complexity 23 of function (*Builder).InitMix() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 21 of function (*Builder).BuildBundles() is high (> 15) (gocyclo)
    • Line 591: warning: cyclomatic complexity 17 of function (*Builder).BuildDeltaPacksPreviousVersions() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 16 of function (*Builder).BuildUpdate() is high (> 15) (gocyclo)
    • mixer-tools/swupd/packs.go
    • Line 119: warning: cyclomatic complexity 32 of function WritePack() is high (> 15) (gocyclo)
    • Line 334: warning: cyclomatic complexity 16 of function copyFromFullChrootFile() is high (> 15) (gocyclo)
    • mixer-tools/swupd/manifest.go
    • Line 474: warning: cyclomatic complexity 24 of function linkDeltaPeersForPack() is high (> 15) (gocyclo)
    • Line 872: warning: cyclomatic complexity 18 of function writeIndexManifest() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 18 of function (*Manifest).linkPeersAndChange() is high (> 15) (gocyclo)
    • Line 78: warning: cyclomatic complexity 17 of function readManifestFileHeaderLine() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!