Preparing report...

Report for github.com/JustinasPuzas/calibrationReader

(v0.0.0-20240229100210-abdb1f08b768)

A+    Excellent!    Found 55 issues across 239 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!


gofmt91%

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!


gocyclo86%

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.

    • a2l/blob.go
    • Line 33: warning: cyclomatic complexity 29 of function parseBlob() is high (> 15) (gocyclo)
    • srec19/hex.go
    • Line 101: warning: cyclomatic complexity 17 of function parseHex() is high (> 15) (gocyclo)
    • a2l/module.go
    • Line 45: warning: cyclomatic complexity 59 of function parseModule() is high (> 15) (gocyclo)
    • Line 708: warning: cyclomatic complexity 58 of function parseModuleMainLoop() is high (> 15) (gocyclo)
    • Line 455: warning: cyclomatic complexity 28 of function collectChannelsMultithreaded() is high (> 15) (gocyclo)
    • a2l/axis_pts.go
    • Line 75: warning: cyclomatic complexity 55 of function parseAxisPts() is high (> 15) (gocyclo)
    • a2l/coeffs.go
    • Line 25: warning: cyclomatic complexity 16 of function parseCoeffs() is high (> 15) (gocyclo)
    • a2l/instance.go
    • Line 32: warning: cyclomatic complexity 33 of function parseInstance() is high (> 15) (gocyclo)
    • record_manager.go
    • Line 138: warning: cyclomatic complexity 32 of function (*CalibrationData).convertByteSliceToDatatype() is high (> 15) (gocyclo)
    • calib_data.go
    • Line 198: warning: cyclomatic complexity 67 of function (*CalibrationData).getNextAlignedAddress() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 65 of function getValuesFromHex() is high (> 15) (gocyclo)
    • a2l/group.go
    • Line 23: warning: cyclomatic complexity 21 of function parseGroup() is high (> 15) (gocyclo)
    • a2l/mod_par.go
    • Line 30: warning: cyclomatic complexity 38 of function parseModPar() is high (> 15) (gocyclo)
    • ihex32/hex.go
    • Line 101: warning: cyclomatic complexity 18 of function parseHex() is high (> 15) (gocyclo)
    • a2l/overwrite.go
    • Line 24: warning: cyclomatic complexity 20 of function parseOverwrite() is high (> 15) (gocyclo)
    • a2l/unit.go
    • Line 23: warning: cyclomatic complexity 16 of function parseUnit() is high (> 15) (gocyclo)
    • a2l/record_layout.go
    • Line 70: warning: cyclomatic complexity 116 of function parseRecordLayout() is high (> 15) (gocyclo)
    • Line 502: warning: cyclomatic complexity 83 of function (*RecordLayout).GetRecordLayoutRelativePositions() is high (> 15) (gocyclo)
    • Line 923: warning: cyclomatic complexity 81 of function (*RecordLayout).GetDatatypeByFieldName() is high (> 15) (gocyclo)
    • a2l/function.go
    • Line 26: warning: cyclomatic complexity 27 of function parseFunction() 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

    • a2l/axis_rescale_x.go
    • Line 66: warning: "Adressing" is a misspelling of "Addressing" (misspell)
    • Line 123: warning: "adressing" is a misspelling of "addressing" (misspell)
    • Line 127: warning: "adressing" is a misspelling of "addressing" (misspell)
    • calib_data.go
    • Line 80: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 93: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 194: warning: "adress" is a misspelling of "address" (misspell)
    • Line 734: warning: "adress" is a misspelling of "address" (misspell)
    • Line 739: warning: "adress" is a misspelling of "address" (misspell)
    • Line 739: warning: "adress" is a misspelling of "address" (misspell)
    • Line 746: warning: "adress" is a misspelling of "address" (misspell)
    • Line 751: warning: "adress" is a misspelling of "address" (misspell)
    • Line 751: warning: "adress" is a misspelling of "address" (misspell)