Preparing report...

Report for github.com/tealeg/xlsx

(v1.0.5)

A+    Excellent!    Found 18 issues across 52 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!


gofmt84%

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

    • row.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo88%

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.

    • read.go
    • Line 26: warning: cyclomatic complexity 27 of function (*Row).ReadStruct() is high (> 15) (gocyclo)
    • xmlStyle.go
    • Line 140: warning: cyclomatic complexity 25 of function (*xlsxStyleSheet).getStyle() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 17 of function (*xlsxFont).Equals() is high (> 15) (gocyclo)
    • write.go
    • Line 14: warning: cyclomatic complexity 20 of function (*Row).WriteSlice() is high (> 15) (gocyclo)
    • Line 91: warning: cyclomatic complexity 18 of function (*Row).WriteStruct() is high (> 15) (gocyclo)
    • format_code.go
    • Line 438: warning: cyclomatic complexity 19 of function parseLiterals() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 18 of function (*parsedNumberFormat).formatNumericCell() is high (> 15) (gocyclo)
    • sheet.go
    • Line 203: warning: cyclomatic complexity 42 of function (*Sheet).makeXLSXSheet() is high (> 15) (gocyclo)
    • lib.go
    • Line 526: warning: cyclomatic complexity 28 of function readRowsFromSheet() is high (> 15) (gocyclo)
    • Line 348: warning: cyclomatic complexity 20 of function formulaForCell() is high (> 15) (gocyclo)
    • Line 1006: warning: cyclomatic complexity 19 of function ReadZipReaderWithRowLimit() is high (> 15) (gocyclo)

ineffassign86%

IneffAssign detects ineffectual assignments in Go code.

    • lib.go
    • Line 290: warning: ineffectual assignment to error (ineffassign)
    • Line 290: warning: ineffectual assignment to error (ineffassign)
    • read.go
    • Line 130: warning: ineffectual assignment to ptr (ineffassign)
    • Line 130: warning: ineffectual assignment to ptr (ineffassign)
    • file_test.go
    • Line 76: warning: ineffectual assignment to err (ineffassign)
    • Line 102: warning: ineffectual assignment to err (ineffassign)
    • Line 903: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell84%

Misspell Finds commonly misspelled English words

    • lib.go
    • Line 88: warning: "Convers" is a misspelling of "Converts" (misspell)
    • Line 98: warning: "differente" is a misspelling of "difference" (misspell)