Preparing report...

Report for github.com/plandem/ooxml

A+    Excellent!    Found 24 issues across 117 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!


gocyclo99%

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.


golint79%

Golint is a linter for Go source code.

    • ooxml/stream_writer.go
    • Line 105: 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)
    • Line 115: 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)
    • ooxml/drawing/vml/css/fraction.go
    • Line 27: 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)
    • ooxml/ml/relationships.go
    • Line 38: warning: exported const TargetModeInternal should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported method TargetMode.MarshalXMLAttr should have comment or be unexported (golint)
    • Line 55: warning: exported method TargetMode.UnmarshalXMLAttr should have comment or be unexported (golint)
    • Line 66: warning: exported method RID.MarshalXMLAttr should have comment or be unexported (golint)
    • Line 70: warning: exported method RIDName.MarshalXMLAttr should have comment or be unexported (golint)
    • ooxml/drawing/vml/css/visibility.go
    • Line 11: warning: exported type Visibility should have comment or be unexported (golint)
    • Line 14: warning: exported const VisibilityInherit should have comment (or a comment on this block) or be unexported (golint)
    • ooxml/drawing/vml/vml_sub_formula.go
    • Line 25: warning: exported method Formulas.MarshalXML should have comment or be unexported (golint)
    • Line 33: warning: exported method Formula.MarshalXML should have comment or be unexported (golint)
    • Line 39: warning: exported method Formula.UnmarshalXML should have comment or be unexported (golint)
    • ooxml/ml/tri_state.go
    • Line 48: 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)
    • Line 71: 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)
    • Line 86: 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)
    • ooxml/drawing/vml/css/number.go
    • Line 24: warning: exported const UnitPx should have comment (or a comment on this block) or be unexported (golint)
    • Line 135: 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)
    • Line 145: 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)
    • ooxml/drawing/vml/css/position.go
    • Line 9: warning: exported type Position should have comment or be unexported (golint)
    • Line 12: warning: exported const PositionStatic should have comment (or a comment on this block) or be unexported (golint)
    • ooxml/ml/general.go
    • Line 33: warning: exported method Property.MarshalXML should have comment or be unexported (golint)
    • Line 38: warning: exported method Property.UnmarshalXML should have comment or be unexported (golint)
    • Line 46: warning: exported method PropertyBool.MarshalXML should have comment or be unexported (golint)
    • Line 51: warning: exported method PropertyBool.UnmarshalXML should have comment or be unexported (golint)
    • Line 63: warning: exported method PropertyInt.MarshalXML should have comment or be unexported (golint)
    • Line 68: warning: exported method PropertyInt.UnmarshalXML should have comment or be unexported (golint)
    • Line 78: warning: exported method PropertyDouble.MarshalXML should have comment or be unexported (golint)
    • Line 83: warning: exported method PropertyDouble.UnmarshalXML should have comment or be unexported (golint)
    • ooxml/drawing/vml/excel_client_data_anchor.go
    • Line 39: warning: comment on exported function StringToClientDataAnchor should be of the form "StringToClientDataAnchor ..." (golint)
    • Line 46: 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)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!