Preparing report...

Report for github.com/telenornms/skogul

(v0.27.2)

A+    Excellent!    Found 14 issues across 136 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!


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.

    • receiver/sql.go
    • Line 52: warning: cyclomatic complexity 23 of function (*SQL).Start() is high (> 15) (gocyclo)
    • parser/mnr.go
    • Line 108: warning: cyclomatic complexity 19 of function (*MNR).mnrParseLine() is high (> 15) (gocyclo)
    • config/parse.go
    • Line 635: warning: cyclomatic complexity 18 of function secondPass() is high (> 15) (gocyclo)
    • Line 311: warning: cyclomatic complexity 16 of function printSyntaxError() is high (> 15) (gocyclo)
    • transformer/metadata.go
    • Line 71: warning: cyclomatic complexity 25 of function (*Metadata).Transform() is high (> 15) (gocyclo)
    • Line 245: warning: cyclomatic complexity 18 of function (*Data).Transform() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 16 of function flattenStructure() is high (> 15) (gocyclo)
    • parser/protobuf_junos.go
    • Line 140: warning: cyclomatic complexity 17 of function applyJuniperHaxx() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 16 of function (*ProtoBuf).createData() is high (> 15) (gocyclo)
    • sender/influxdb.go
    • Line 95: warning: cyclomatic complexity 27 of function (*InfluxDB).Send() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 16 of function checkVariable() is high (> 15) (gocyclo)
    • parser/influxdb.go
    • Line 89: warning: cyclomatic complexity 20 of function (*InfluxDBLineProtocol).ParseLine() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 16 of function parseFieldValue() is high (> 15) (gocyclo)
    • Line 282: warning: cyclomatic complexity 16 of function influxLineParser() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words