Report for github.com/oporto723/ahrefs-go

A    Great!    Found 7 issues across 9 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!


golint22%

Golint is a linter for Go source code.

    • ahrefs-go/referring_domains_by_type.go
    • Line 8: warning: exported type ReferringDomainsByTypeResponse should have comment or be unexported (golint)
    • Line 14: warning: exported type ReferringDomainByType should have comment or be unexported (golint)
    • Line 28: warning: exported type ReferringDomainsByTypeStats should have comment or be unexported (golint)
    • Line 52: warning: exported type TLD should have comment or be unexported (golint)
    • ahrefs-go/request.go
    • Line 133: warning: exported function WithTarget should have comment or be unexported (golint)
    • Line 139: warning: exported function WithLimit should have comment or be unexported (golint)
    • Line 145: warning: exported function WithHaving should have comment or be unexported (golint)
    • Line 151: warning: exported function WithWhere should have comment or be unexported (golint)
    • ahrefs-go/ahrefs.go
    • Line 18: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 139: warning: exported type Service should have comment or be unexported (golint)
    • ahrefs-go/pages.go
    • Line 8: warning: exported type PagesResponse should have comment or be unexported (golint)
    • Line 13: warning: exported type Page should have comment or be unexported (golint)
    • Line 28: warning: exported type PagesStats should have comment or be unexported (golint)
    • ahrefs-go/position_metrics.go
    • Line 8: warning: exported type PositionMetricsResponse should have comment or be unexported (golint)
    • Line 12: warning: exported type PositionMetrics should have comment or be unexported (golint)
    • ahrefs-go/referring_domains.go
    • Line 8: warning: exported type ReferringDomainsResponse should have comment or be unexported (golint)
    • Line 13: warning: exported type ReferringDomain should have comment or be unexported (golint)
    • Line 19: warning: exported type ReferringDomainsStats should have comment or be unexported (golint)

gocyclo88%

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!