Preparing report...

Report for github.com/arttet/reddit-feed-api

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


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.


golint61%

Golint is a linter for Go source code.

    • reddit-feed-api/internal/server/server.go
    • Line 37: warning: exported type Server should have comment or be unexported (golint)
    • Line 42: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 49: warning: exported method Server.Start should have comment or be unexported (golint)
    • reddit-feed-api/internal/repo/repo.go
    • Line 15: warning: exported type Repo should have comment or be unexported (golint)
    • Line 21: warning: exported function NewRepo should have comment or be unexported (golint)
    • Line 27: warning: exported const TableName should have comment or be unexported (golint)
    • Line 29: warning: exported var InsertColumns should have comment or be unexported (golint)
    • Line 40: warning: exported var SelectColumns should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign72%

IneffAssign detects ineffectual assignments in Go code.

    • reddit-feed-api/internal/api/api.go
    • Line 21: warning: module github.com/arttet/reddit-feed-api/pkg/reddit-feed-api@latest found (v0.0.0-00010101000000-000000000000, replaced by ./pkg/reddit-feed-api), but does not contain package github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (ineffassign)
    • Line 21: warning: could not import github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (invalid package name: "") (ineffassign)
    • reddit-feed-api/internal/api/api_test.go
    • Line 13: warning: no required module provides package github.com/arttet/reddit-feed-api/internal/mock; to add it: (ineffassign)
    • Line 13: warning: could not import github.com/arttet/reddit-feed-api/internal/mock (invalid package name: "") (ineffassign)
    • Line 31: warning: could not import github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (invalid package name: "") (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/arttet/reddit-feed-api/internal/api/api.go
    • Line 21: warning: module github.com/arttet/reddit-feed-api/pkg/reddit-feed-api@latest found (v0.0.0-00010101000000-000000000000, replaced by ./pkg/reddit-feed-api), but does not contain package github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (ineffassign)
    • Line 21: warning: could not import github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (invalid package name: "") (ineffassign)
    • Line 21: warning: module github.com/arttet/reddit-feed-api/pkg/reddit-feed-api@latest found (v0.0.0-00010101000000-000000000000, replaced by ./pkg/reddit-feed-api), but does not contain package github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (ineffassign)
    • Line 21: warning: could not import github.com/arttet/reddit-feed-api/pkg/reddit-feed-api/v1 (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!