Preparing report...

Report for github.com/rdfio/rdf2smw

A+    Excellent!    Found 17 issues across 28 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!


gocyclo96%

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.


golint39%

Golint is a linter for Go source code.

    • rdf2smw/components/tripleaggrfanout.go
    • Line 3: warning: exported type FanOutTripleAggregate should have comment or be unexported (golint)
    • Line 8: warning: comment on exported function NewFanOutTripleAggregate should be of the form "NewFanOutTripleAggregate ..." (golint)
    • rdf2smw/components/tripleaggrprinter.go
    • Line 5: warning: exported type TripleAggregatePrinter should have comment or be unexported (golint)
    • Line 9: warning: exported function NewTripleAggregatePrinter should have comment or be unexported (golint)
    • Line 15: warning: exported method TripleAggregatePrinter.Run should have comment or be unexported (golint)
    • rdf2smw/components/tripleprinter.go
    • Line 9: warning: exported type TriplePrinter should have comment or be unexported (golint)
    • Line 13: warning: exported function NewTriplePrinter should have comment or be unexported (golint)
    • Line 19: warning: exported method TriplePrinter.Run should have comment or be unexported (golint)
    • rdf2smw/components/triplestowikipageconv.go
    • Line 49: warning: exported const URITypeUndefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported function NewTripleAggregateToWikiPageConverter should have comment or be unexported (golint)
    • Line 78: warning: exported method TripleAggregateToWikiPageConverter.Run should have comment or be unexported (golint)
    • rdf2smw/components/wikipageprinter.go
    • Line 9: warning: exported type WikiPagePrinter should have comment or be unexported (golint)
    • Line 13: warning: exported function NewWikiPagePrinter should have comment or be unexported (golint)
    • Line 19: warning: exported method WikiPagePrinter.Run should have comment or be unexported (golint)
    • rdf2smw/components/strfilewriter.go
    • Line 9: warning: exported type StringFileWriter should have comment or be unexported (golint)
    • Line 15: warning: exported function NewStringFileWriter should have comment or be unexported (golint)
    • Line 23: warning: exported method StringFileWriter.Run should have comment or be unexported (golint)
    • Line 39: warning: exported type DoneSignal should have comment or be unexported (golint)
    • rdf2smw/components/stringprinter.go
    • Line 5: warning: exported type StringPrinter should have comment or be unexported (golint)
    • Line 9: warning: exported function NewStringPrinter should have comment or be unexported (golint)
    • Line 15: warning: exported method StringPrinter.Run should have comment or be unexported (golint)
    • rdf2smw/components/residxtoresaggrconv.go
    • Line 3: warning: exported type ResourceIndexToTripleAggregates should have comment or be unexported (golint)
    • Line 8: warning: exported function NewResourceIndexToTripleAggregates should have comment or be unexported (golint)
    • Line 15: warning: exported method ResourceIndexToTripleAggregates.Run should have comment or be unexported (golint)
    • rdf2smw/components/smwtplformatter.go
    • Line 5: warning: exported type SMWTemplateCallFormatter should have comment or be unexported (golint)
    • Line 10: warning: exported function NewSMWTemplateCallFormatter should have comment or be unexported (golint)
    • Line 17: warning: exported method SMWTemplateCallFormatter.Run should have comment or be unexported (golint)
    • rdf2smw/main.go
    • Line 35: warning: exported const BUFSIZE should have comment (or a comment on this block) or be unexported (golint)
    • rdf2smw/components/residxcreator.go
    • Line 3: warning: exported type ResourceIndexCreator should have comment or be unexported (golint)
    • Line 8: warning: exported function NewResourceIndexCreator should have comment or be unexported (golint)
    • Line 15: warning: exported method ResourceIndexCreator.Run should have comment or be unexported (golint)
    • rdf2smw/components/iptypes.go
    • Line 13: warning: exported type TripleAggregate should have comment or be unexported (golint)
    • Line 19: warning: exported function NewTripleAggregate should have comment or be unexported (golint)
    • Line 31: warning: exported type WikiPage should have comment or be unexported (golint)
    • Line 39: warning: exported function NewWikiPage should have comment or be unexported (golint)
    • Line 49: warning: exported method WikiPage.AddFact should have comment or be unexported (golint)
    • Line 53: warning: exported method WikiPage.AddFactUnique should have comment or be unexported (golint)
    • Line 66: warning: exported method WikiPage.AddCategory should have comment or be unexported (golint)
    • Line 70: warning: exported method WikiPage.AddCategoryUnique should have comment or be unexported (golint)
    • Line 87: warning: exported type Fact should have comment or be unexported (golint)
    • Line 92: warning: exported function NewFact should have comment or be unexported (golint)
    • Line 117: warning: exported type Category should have comment or be unexported (golint)
    • Line 121: warning: exported function NewCategory should have comment or be unexported (golint)
    • rdf2smw/components/residxfanout.go
    • Line 3: warning: exported type ResourceIndexFanOut should have comment or be unexported (golint)
    • Line 8: warning: exported function NewResourceIndexFanOut should have comment or be unexported (golint)
    • Line 15: warning: exported method ResourceIndexFanOut.Run should have comment or be unexported (golint)
    • rdf2smw/components/mwxmlcreator.go
    • Line 9: warning: exported type MWXMLCreator should have comment or be unexported (golint)
    • Line 17: warning: exported function NewMWXMLCreator should have comment or be unexported (golint)
    • Line 52: warning: exported method MWXMLCreator.Run should have comment or be unexported (golint)
    • rdf2smw/components/tripleparser.go
    • Line 11: warning: exported type TripleParser should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTripleParser should have comment or be unexported (golint)
    • Line 23: warning: exported method TripleParser.Run should have comment or be unexported (golint)
    • rdf2smw/components/catfilterer.go
    • Line 3: warning: exported type CategoryFilterer should have comment or be unexported (golint)
    • Line 9: warning: exported function NewCategoryFilterer should have comment or be unexported (golint)
    • Line 17: warning: exported method CategoryFilterer.Run should have comment or be unexported (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!