Preparing report...

Report for github.com/chararch/gobatch

(v1.0.2)

A+    Excellent!    Found 10 issues across 47 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!


gofmt100%

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

No problems detected. Good job!


gocyclo80%

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.

    • step.go
    • Line 436: warning: cyclomatic complexity 26 of function (*partitionStep).Exec() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 18 of function (*chunkStep).doChunk() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 18 of function (*chunkStep).Exec() is high (> 15) (gocyclo)
    • step_builder.go
    • Line 64: warning: cyclomatic complexity 19 of function (*stepBuilder).Handler() is high (> 15) (gocyclo)
    • job.go
    • Line 104: warning: cyclomatic complexity 18 of function execStep() is high (> 15) (gocyclo)
    • context.go
    • Line 84: warning: cyclomatic complexity 16 of function (*BatchContext).GetInt64() is high (> 15) (gocyclo)
    • Line 48: warning: cyclomatic complexity 16 of function (*BatchContext).GetInt() is high (> 15) (gocyclo)
    • file/xsv_marshal.go
    • Line 35: warning: cyclomatic complexity 43 of function getMetadata() is high (> 15) (gocyclo)
    • Line 735: warning: cyclomatic complexity 32 of function formatVal() is high (> 15) (gocyclo)
    • Line 566: warning: cyclomatic complexity 31 of function serializeStruct() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 26 of function xsvUnmarshal() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 25 of function xsvUnmarshalByOrder() is high (> 15) (gocyclo)
    • Line 449: warning: cyclomatic complexity 23 of function setValue() is high (> 15) (gocyclo)
    • Line 378: warning: cyclomatic complexity 21 of function xsvUnmarshalByHeader() is high (> 15) (gocyclo)
    • Line 671: warning: cyclomatic complexity 21 of function serializeStructByHeader() is high (> 15) (gocyclo)
    • repository.go
    • Line 364: warning: cyclomatic complexity 17 of function saveStepExecution() is high (> 15) (gocyclo)
    • file/common.go
    • Line 268: warning: cyclomatic complexity 23 of function Split() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 19 of function copyFile() 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!


misspell95%

Misspell Finds commonly misspelled English words

    • file/common.go
    • Line 20: warning: "seperated" is a misspelling of "separated" (misspell)
    • Line 22: warning: "seperated" is a misspelling of "separated" (misspell)