Preparing report...

Report for github.com/suyashkumar/dicom

A+    Excellent!    Found 13 issues across 44 files

Tweet

gofmt95%

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


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!


gocyclo95%

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.

    • dicom/write.go
    • Line 117: warning: cyclomatic complexity 23 of function writeFileHeader() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 17 of function writePixelData() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 16 of function writeVRVL() is high (> 15) (gocyclo)

golint84%

Golint is a linter for Go source code.

    • dicom/pkg/vrraw/vrraw.go
    • Line 59: warning: comment on exported const IntegerString should be of the form "IntegerString ..." (golint)
    • Line 134: warning: comment on exported const ShortText should be of the form "ShortText ..." (golint)
    • dicom/pkg/charset/charset.go
    • Line 87: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • dicom/pkg/uid/uid.go
    • Line 8: warning: comment on exported var StandardTransferSyntaxes should be of the form "StandardTransferSyntaxes ..." (golint)
    • dicom/pkg/uid/uid_definitions.go
    • Line 9: warning: exported type Type should have comment or be unexported (golint)
    • Line 12: warning: exported const TypeSOPClass should have comment (or a comment on this block) or be unexported (golint)
    • dicom/pkg/personname/groupInfo.go
    • Line 45: warning: comment on exported const GroupNullLevelGiven should be of the form "GroupNullLevelGiven ..." (golint)
    • Line 49: warning: comment on exported const GroupNullLevelMiddle should be of the form "GroupNullLevelMiddle ..." (golint)
    • Line 53: warning: comment on exported const GroupNullLevelPrefix should be of the form "GroupNullLevelPrefix ..." (golint)
    • Line 57: warning: comment on exported const GroupNullLevelAll should be of the form "GroupNullLevelAll ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words