Preparing report...

Report for github.com/streamsets/datacollector-edge

(v0.0.0-20210415232043-ec16f6021938)

C    Needs some work    Found 241 issues across 262 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!


gofmt8%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo91%

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.

    • api/field.go
    • Line 86: warning: cyclomatic complexity 25 of function CreateField() is high (> 15) (gocyclo)
    • main.go
    • Line 138: warning: cyclomatic complexity 18 of function main() is high (> 15) (gocyclo)
    • stages/origins/filetail/filetail.go
    • Line 113: warning: cyclomatic complexity 18 of function (*FileTailOrigin).Init() is high (> 15) (gocyclo)
    • Line 278: warning: cyclomatic complexity 17 of function (*FileTailOrigin).reinitializeIfNeeded() is high (> 15) (gocyclo)
    • Line 203: warning: cyclomatic complexity 17 of function (*FileTailOrigin).Produce() is high (> 15) (gocyclo)
    • stages/destinations/kafka/kafka.go
    • Line 322: warning: cyclomatic complexity 42 of function (*KafkaDestination).mapJVMConfigsToSaramaConfig() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 18 of function (*KafkaDestination).Write() is high (> 15) (gocyclo)
    • container/recordio/delimitedrecord/delimited_reader_test.go
    • Line 41: warning: cyclomatic complexity 21 of function TestReadDelimitedRecord_ListType_WithHeader() is high (> 15) (gocyclo)
    • Line 522: warning: cyclomatic complexity 20 of function TestReadDelimitedRecord_ListMapType_NoHeader() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 20 of function TestReadDelimitedRecord_ListMapType_WithHeader() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 20 of function TestReadDelimitedRecord_ListMapType_IgnoreHeader() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 18 of function TestReadDelimitedRecord_ListType_NoHeader() is high (> 15) (gocyclo)
    • Line 619: warning: cyclomatic complexity 17 of function TestReadDelimitedRecord_ListMapType_Custom_Format() is high (> 15) (gocyclo)
    • container/creation/stage_bean.go
    • Line 129: warning: cyclomatic complexity 33 of function injectStageConfigs() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 22 of function injectListBeanStageConfigs() is high (> 15) (gocyclo)
    • container/common/record_test.go
    • Line 229: warning: cyclomatic complexity 21 of function TestRecordImpl_Set() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 17 of function TestRecordImpl_GetFromPath() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words