Preparing report...

Report for github.com/openSUSE/umoci

A+    Excellent!    Found 24 issues across 95 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!


gocyclo77%

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.

    • umoci/mutate/mutate_test.go
    • Line 516: warning: cyclomatic complexity 21 of function TestMutatePath() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 17 of function TestMutateAddNonDistributable() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 17 of function TestMutateAdd() is high (> 15) (gocyclo)
    • umoci/oci/cas/dir/cas_test.go
    • Line 160: warning: cyclomatic complexity 33 of function TestEngineValidate() is high (> 15) (gocyclo)
    • Line 74: warning: cyclomatic complexity 18 of function TestEngineBlob() is high (> 15) (gocyclo)
    • umoci/oci/cas/dir/dir_test.go
    • Line 195: warning: cyclomatic complexity 18 of function TestEngineGCLocking() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 16 of function TestEngineBlobReadonly() is high (> 15) (gocyclo)
    • umoci/oci/layer/tar_extract_test.go
    • Line 317: warning: cyclomatic complexity 30 of function TestUnpackOpaqueWhiteout() is high (> 15) (gocyclo)
    • Line 582: warning: cyclomatic complexity 23 of function TestUnpackHardlink() is high (> 15) (gocyclo)
    • Line 725: warning: cyclomatic complexity 20 of function TestUnpackEntryMap() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 19 of function TestUnpackEntryWhiteout() is high (> 15) (gocyclo)
    • Line 885: warning: cyclomatic complexity 17 of function TestIsDirlink() is high (> 15) (gocyclo)
    • umoci/oci/layer/tar_extract.go
    • Line 258: warning: cyclomatic complexity 61 of function (*TarExtractor).UnpackEntry() is high (> 15) (gocyclo)
    • Line 87: warning: cyclomatic complexity 19 of function (*TarExtractor).restoreMetadata() is high (> 15) (gocyclo)
    • umoci/pkg/unpriv/unpriv_test.go
    • Line 679: warning: cyclomatic complexity 41 of function TestLink() is high (> 15) (gocyclo)
    • Line 964: warning: cyclomatic complexity 39 of function TestLutimes() is high (> 15) (gocyclo)
    • Line 334: warning: cyclomatic complexity 33 of function TestOpen() is high (> 15) (gocyclo)
    • Line 1367: warning: cyclomatic complexity 32 of function TestMkdirAll() is high (> 15) (gocyclo)
    • Line 472: warning: cyclomatic complexity 31 of function TestReaddir() is high (> 15) (gocyclo)
    • Line 1584: warning: cyclomatic complexity 29 of function TestMkdirRWPerm() is high (> 15) (gocyclo)
    • Line 850: warning: cyclomatic complexity 28 of function TestChtimes() is high (> 15) (gocyclo)
    • Line 1487: warning: cyclomatic complexity 24 of function TestMkdirAllMissing() is high (> 15) (gocyclo)
    • Line 1126: warning: cyclomatic complexity 23 of function TestRemove() is high (> 15) (gocyclo)
    • Line 1796: warning: cyclomatic complexity 23 of function TestWalk() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 23 of function TestSymlink() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 23 of function TestReadlink() is high (> 15) (gocyclo)
    • Line 1704: warning: cyclomatic complexity 22 of function TestMkdirRPerm() is high (> 15) (gocyclo)
    • Line 1282: warning: cyclomatic complexity 22 of function TestMkdir() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 21 of function TestLstat() is high (> 15) (gocyclo)
    • Line 1209: warning: cyclomatic complexity 19 of function TestRemoveAll() is high (> 15) (gocyclo)
    • Line 596: warning: cyclomatic complexity 19 of function TestWrapWrite() is high (> 15) (gocyclo)
    • umoci/oci/layer/generate_test.go
    • Line 32: warning: cyclomatic complexity 27 of function TestGenerate() is high (> 15) (gocyclo)
    • Line 140: warning: cyclomatic complexity 16 of function TestGenerateMissingFileError() is high (> 15) (gocyclo)
    • umoci/oci/layer/tar_generate_test.go
    • Line 33: warning: cyclomatic complexity 19 of function TestTarGenerateAddFileNormal() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 18 of function TestTarGenerateAddFileSymlink() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 17 of function TestTarGenerateAddFileDirectory() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words