Preparing report...

Report for github.com/wallix/triplestore

A+    Excellent!    Found 13 issues across 23 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!


gocyclo82%

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.


golint56%

Golint is a linter for Go source code.

    • triplestore/dsl.go
    • Line 11: warning: exported function SubjPredRes should have comment or be unexported (golint)
    • Line 18: warning: exported function BnodePredRes should have comment or be unexported (golint)
    • Line 27: warning: exported function SubjPredBnode should have comment or be unexported (golint)
    • Line 35: warning: exported function SubjPredLit should have comment or be unexported (golint)
    • Line 53: warning: exported function SubjPred should have comment or be unexported (golint)
    • Line 57: warning: exported function BnodePred should have comment or be unexported (golint)
    • Line 61: warning: exported function Resource should have comment or be unexported (golint)
    • Line 97: warning: exported type UnsupportedLiteralTypeError should have comment or be unexported (golint)
    • Line 105: warning: exported function ObjectLiteral should have comment or be unexported (golint)
    • Line 144: warning: exported function ParseLiteral should have comment or be unexported (golint)
    • Line 176: warning: exported function BooleanLiteral should have comment or be unexported (golint)
    • Line 192: warning: exported function ParseBoolean should have comment or be unexported (golint)
    • Line 204: warning: exported function IntegerLiteral should have comment or be unexported (golint)
    • Line 220: warning: exported function ParseInteger should have comment or be unexported (golint)
    • Line 232: warning: exported function Int8Literal should have comment or be unexported (golint)
    • Line 248: warning: exported function ParseInt8 should have comment or be unexported (golint)
    • Line 264: warning: exported function Int16Literal should have comment or be unexported (golint)
    • Line 280: warning: exported function ParseInt16 should have comment or be unexported (golint)
    • Line 296: warning: exported function UintegerLiteral should have comment or be unexported (golint)
    • Line 312: warning: exported function ParseUinteger should have comment or be unexported (golint)
    • Line 328: warning: exported function Uint8Literal should have comment or be unexported (golint)
    • Line 344: warning: exported function ParseUint8 should have comment or be unexported (golint)
    • Line 360: warning: exported function Uint16Literal should have comment or be unexported (golint)
    • Line 376: warning: exported function ParseUint16 should have comment or be unexported (golint)
    • Line 392: warning: exported function Float64Literal should have comment or be unexported (golint)
    • Line 408: warning: exported function ParseFloat64 should have comment or be unexported (golint)
    • Line 420: warning: exported function Float32Literal should have comment or be unexported (golint)
    • Line 436: warning: exported function ParseFloat32 should have comment or be unexported (golint)
    • Line 452: warning: exported function StringLiteral should have comment or be unexported (golint)
    • Line 459: warning: exported function StringLiteralWithLang should have comment or be unexported (golint)
    • Line 484: warning: exported function ParseString should have comment or be unexported (golint)
    • Line 496: warning: exported function DateTimeLiteral should have comment or be unexported (golint)
    • Line 517: warning: exported function ParseDateTime should have comment or be unexported (golint)
    • triplestore/struct.go
    • Line 19: warning: comment on exported function TriplesFromStruct should be of the form "TriplesFromStruct ..." (golint)
    • triplestore/tree.go
    • Line 8: warning: comment on exported type Tree should be of the form "Tree ..." (with optional leading article) (golint)
    • Line 19: warning: exported function NewTree should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method Tree.TraverseDFS should be of the form "TraverseDFS ..." (golint)
    • Line 57: warning: comment on exported method Tree.TraverseAncestors should be of the form "TraverseAncestors ..." (golint)
    • Line 84: warning: comment on exported method Tree.TraverseSiblings should be of the form "TraverseSiblings ..." (golint)
    • triplestore/types.go
    • Line 8: warning: exported type XsdType should have comment or be unexported (golint)
    • Line 11: warning: exported var XsdString should have comment or be unexported (golint)
    • Line 15: warning: comment on exported var XsdDouble should be of the form "XsdDouble ..." (golint)
    • Line 17: warning: comment on exported var XsdFloat should be of the form "XsdFloat ..." (golint)
    • Line 20: warning: comment on exported var XsdInteger should be of the form "XsdInteger ..." (golint)
    • Line 22: warning: comment on exported var XsdByte should be of the form "XsdByte ..." (golint)
    • Line 24: warning: comment on exported var XsdShort should be of the form "XsdShort ..." (golint)
    • Line 27: warning: comment on exported var XsdUinteger should be of the form "XsdUinteger ..." (golint)
    • Line 29: warning: comment on exported var XsdUnsignedByte should be of the form "XsdUnsignedByte ..." (golint)
    • Line 31: warning: comment on exported var XsdUnsignedShort should be of the form "XsdUnsignedShort ..." (golint)
    • Line 35: warning: exported const XMLSchemaNamespace should have comment or be unexported (golint)
    • Line 37: warning: exported method XsdType.NTriplesNamespaced should have comment or be unexported (golint)
    • triplestore/decode.go
    • Line 15: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 19: warning: exported type DecodeResult should have comment or be unexported (golint)
    • Line 24: warning: exported type StreamDecoder should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function NewAutoDecoder should be of the form "NewAutoDecoder ..." (golint)
    • Line 37: warning: comment on exported function IsNTFormat should be of the form "IsNTFormat ..." (golint)
    • Line 49: warning: exported function NewLenientNTDecoder should have comment or be unexported (golint)
    • Line 53: warning: exported function NewLenientNTStreamDecoder should have comment or be unexported (golint)
    • Line 103: warning: exported function NewBinaryStreamDecoder should have comment or be unexported (golint)
    • Line 129: warning: exported function NewBinaryDecoder should have comment or be unexported (golint)
    • triplestore/encode.go
    • Line 13: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 17: warning: exported type StreamEncoder should have comment or be unexported (golint)
    • Line 21: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 25: warning: exported type Context should have comment or be unexported (golint)
    • Line 30: warning: exported var RDFContext should have comment or be unexported (golint)
    • Line 51: warning: exported function NewBinaryStreamEncoder should have comment or be unexported (golint)
    • Line 55: warning: exported function NewBinaryEncoder should have comment or be unexported (golint)
    • Line 149: warning: exported function NewLenientNTStreamEncoder should have comment or be unexported (golint)
    • Line 153: warning: exported function NewLenientNTEncoder should have comment or be unexported (golint)
    • Line 157: warning: exported function NewLenientNTEncoderWithContext should have comment or be unexported (golint)
    • Line 253: warning: exported function NewDotGraphEncoder should have comment or be unexported (golint)
    • Line 269: 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)
    • triplestore/source.go
    • Line 12: warning: comment on exported type Source should be of the form "Source ..." (with optional leading article) (golint)
    • Line 33: warning: exported type Triples should have comment or be unexported (golint)
    • Line 35: warning: exported method Triples.Equal should have comment or be unexported (golint)
    • Line 53: warning: exported method Triples.Sort should have comment or be unexported (golint)
    • Line 57: warning: exported method Triples.Map should have comment or be unexported (golint)
    • Line 78: warning: comment on exported function NewSource should be of the form "NewSource ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words

    • triplestore/decode.go
    • Line 28: warning: "compatibilty" is a misspelling of "compatibility" (misspell)
    • Line 38: warning: "compatibilty" is a misspelling of "compatibility" (misspell)