Preparing report...

Report for github.com/sda1-hacker/iec61850

(v0.0.0-20250519091211-1d72b2441272)

A+    Excellent!    Found 8 issues across 60 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


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.

    • errors.go
    • Line 43: warning: cyclomatic complexity 28 of function GetIedClientError() is high (> 15) (gocyclo)
    • scl/static_model_generator.go
    • Line 956: warning: cyclomatic complexity 21 of function (*StaticModelGenerator).printDataAttributeDefinitions() is high (> 15) (gocyclo)
    • Line 1117: warning: cyclomatic complexity 21 of function (*StaticModelGenerator).printDataSets() is high (> 15) (gocyclo)
    • Line 780: warning: cyclomatic complexity 19 of function (*StaticModelGenerator).printReportControlBlockInstance() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 17 of function (*StaticModelGenerator).printDeviceModelDefinitions() is high (> 15) (gocyclo)
    • mms.go
    • Line 11: warning: cyclomatic complexity 21 of function toMmsValue() is high (> 15) (gocyclo)
    • client_rcb.go
    • Line 98: warning: cyclomatic complexity 17 of function (*Client).SetRCBValues() is high (> 15) (gocyclo)
    • scl/parser.go
    • Line 23: warning: cyclomatic complexity 75 of function (*Parser).Parse() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 20 of function (*Parser).parsePhyComAddress() is high (> 15) (gocyclo)
    • scl/information.go
    • Line 43: warning: cyclomatic complexity 34 of function (AttributeType).ToString() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 34 of function createAttributeTypeFromScl() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!