Preparing report...

Report for github.com/importcjj/go-readability

A+    Excellent!    Found 2 issues across 4 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!


gocyclo75%

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.

    • go-readability/read.go
    • Line 734: warning: cyclomatic complexity 46 of function grabArticle() is high (> 15) (gocyclo)
    • Line 539: warning: cyclomatic complexity 27 of function cleanConditionally() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 21 of function getArticleMetadata() is high (> 15) (gocyclo)
    • Line 1213: warning: cyclomatic complexity 20 of function estimateReadTime() is high (> 15) (gocyclo)
    • Line 1165: warning: cyclomatic complexity 18 of function GetTextContent() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • go-readability/read.go
    • Line 1069: warning: exported var LINEREAK should have comment or be unexported (golint)
    • Line 1076: warning: exported type RenderFunc should have comment or be unexported (golint)
    • Line 1078: warning: exported type TextRenderers should have comment or be unexported (golint)
    • Line 1083: warning: exported function NewTextRenderers should have comment or be unexported (golint)
    • Line 1104: warning: exported method TextRenderers.WriteLineBreak should have comment or be unexported (golint)
    • Line 1108: warning: exported method TextRenderers.Register should have comment or be unexported (golint)
    • Line 1117: warning: exported function NewNoobTextRenderers should have comment or be unexported (golint)
    • Line 1351: warning: exported function CleanDoc should have comment or be unexported (golint)
    • Line 1360: warning: exported method Extractor.FromReaderWithSelector should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • go-readability/read.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/PuerkitoBio/goquery (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/abadojack/whatlanggo (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import golang.org/x/net/html (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/PuerkitoBio/goquery (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/abadojack/whatlanggo (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import golang.org/x/net/html (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!