Preparing report...

Report for github.com/dranih/gowap

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


gocyclo85%

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.

    • gowap/pkg/core/core.go
    • Line 310: warning: cyclomatic complexity 24 of function analyzePage() is high (> 15) (gocyclo)
    • Line 596: warning: cyclomatic complexity 20 of function parsePatterns() is high (> 15) (gocyclo)

golint42%

Golint is a linter for Go source code.

    • gowap/pkg/scraper/scraper.go
    • Line 9: warning: exported type ScrapedURL should have comment or be unexported (golint)
    • Line 14: warning: exported type ScrapedData should have comment or be unexported (golint)
    • gowap/pkg/scraper/scraper_colly.go
    • Line 17: warning: exported type CollyScraper should have comment or be unexported (golint)
    • Line 26: warning: exported method CollyScraper.CanRenderPage should have comment or be unexported (golint)
    • Line 30: warning: exported method CollyScraper.SetDepth should have comment or be unexported (golint)
    • Line 34: warning: exported method CollyScraper.Init should have comment or be unexported (golint)
    • Line 56: warning: exported method CollyScraper.Scrape should have comment or be unexported (golint)
    • Line 98: warning: comment on exported method CollyScraper.EvalJS should be of the form "EvalJS ..." (golint)
    • gowap/pkg/scraper/scraper_rod.go
    • Line 19: warning: exported type RodScraper should have comment or be unexported (golint)
    • Line 31: warning: exported method RodScraper.CanRenderPage should have comment or be unexported (golint)
    • Line 35: warning: exported method RodScraper.SetDepth should have comment or be unexported (golint)
    • Line 39: warning: exported method RodScraper.Init should have comment or be unexported (golint)
    • Line 52: warning: exported method RodScraper.Scrape should have comment or be unexported (golint)
    • Line 138: warning: exported method RodScraper.EvalJS should have comment or be unexported (golint)
    • Line 146: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gowap/pkg/core/core.go
    • Line 233: warning: exported method Wappalyzer.Analyze should have comment or be unexported (golint)
    • Line 274: warning: if block ends with a return statement, so drop this else and outdent its block (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!