Preparing report...

Report for github.com/vbatts/tar-split

(v0.12.1)

A+    Excellent!    Found 15 issues across 36 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!


gofmt80%

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


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.

    • archive/tar/common.go
    • Line 333: warning: cyclomatic complexity 52 of function (Header).allowedFormats() is high (> 15) (gocyclo)
    • Line 629: warning: cyclomatic complexity 19 of function FileInfoHeader() is high (> 15) (gocyclo)
    • archive/tar/reader.go
    • Line 393: warning: cyclomatic complexity 29 of function (*Reader).readHeader() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 27 of function (*Reader).next() is high (> 15) (gocyclo)
    • Line 799: warning: cyclomatic complexity 17 of function (*sparseFileReader).WriteTo() is high (> 15) (gocyclo)
    • Line 293: warning: cyclomatic complexity 16 of function mergePAX() is high (> 15) (gocyclo)
    • archive/tar/writer_test.go
    • Line 51: warning: cyclomatic complexity 21 of function TestWriter() is high (> 15) (gocyclo)
    • Line 837: warning: cyclomatic complexity 19 of function TestWriterErrors() is high (> 15) (gocyclo)
    • Line 1047: warning: cyclomatic complexity 18 of function TestFileWriter() is high (> 15) (gocyclo)
    • archive/tar/reader_test.go
    • Line 776: warning: cyclomatic complexity 17 of function TestReadTruncation() is high (> 15) (gocyclo)
    • Line 1359: warning: cyclomatic complexity 17 of function TestFileReader() is high (> 15) (gocyclo)
    • Line 24: warning: cyclomatic complexity 17 of function TestReader() 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!


misspell97%

Misspell Finds commonly misspelled English words