Preparing report...

Report for git.mills.io/prologic/pollinator

(v0.0.0-20211003071727-a8c5d7c53d04)

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


gocyclo100%

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.

No problems detected. Good job!


golint43%

Golint is a linter for Go source code.

    • /git.mills.io/prologic/pollinator/utils.go
    • Line 17: warning: exported function FastHash should have comment or be unexported (golint)
    • Line 27: warning: exported type URI should have comment or be unexported (golint)
    • Line 32: warning: exported method URI.IsZero should have comment or be unexported (golint)
    • Line 40: warning: exported function ParseURI should have comment or be unexported (golint)
    • /git.mills.io/prologic/pollinator/bitcask_store.go
    • Line 64: warning: exported method BitcaskStore.HasPoll should have comment or be unexported (golint)
    • Line 69: warning: exported method BitcaskStore.DelPoll should have comment or be unexported (golint)
    • Line 74: warning: exported method BitcaskStore.GetPoll should have comment or be unexported (golint)
    • Line 83: warning: exported method BitcaskStore.SetPoll should have comment or be unexported (golint)
    • Line 96: warning: exported method BitcaskStore.LenPolls should have comment or be unexported (golint)
    • Line 109: warning: exported method BitcaskStore.GetAllPolls should have comment or be unexported (golint)
    • /git.mills.io/prologic/pollinator/jobs.go
    • Line 14: warning: exported function NewJobSpec should have comment or be unexported (golint)
    • Line 19: warning: exported var Jobs should have comment or be unexported (golint)
    • Line 23: warning: exported function InitJobs should have comment or be unexported (golint)
    • Line 31: warning: exported type JobFactory should have comment or be unexported (golint)
    • Line 33: warning: exported type SyncStoreJob should have comment or be unexported (golint)
    • Line 38: warning: exported function NewSyncStoreJob should have comment or be unexported (golint)
    • Line 42: warning: exported method SyncStoreJob.Run should have comment or be unexported (golint)
    • /git.mills.io/prologic/pollinator/memory_store.go
    • Line 8: warning: exported function NewMemoryStore should have comment or be unexported (golint)
    • Line 12: warning: exported method MemoryStore.Sync should have comment or be unexported (golint)
    • Line 13: warning: exported method MemoryStore.Close should have comment or be unexported (golint)
    • Line 14: warning: exported method MemoryStore.Merge should have comment or be unexported (golint)
    • Line 16: warning: exported method MemoryStore.HasPoll should have comment or be unexported (golint)
    • Line 21: warning: exported method MemoryStore.DelPoll should have comment or be unexported (golint)
    • Line 26: warning: exported method MemoryStore.GetPoll should have comment or be unexported (golint)
    • Line 34: warning: exported method MemoryStore.SetPoll should have comment or be unexported (golint)
    • Line 39: warning: exported method MemoryStore.LenPolls should have comment or be unexported (golint)
    • Line 43: warning: exported method MemoryStore.GetAllPolls should have comment or be unexported (golint)
    • /git.mills.io/prologic/pollinator/store.go
    • Line 9: warning: exported var ErrInvalidStore should have comment or be unexported (golint)
    • Line 13: warning: exported type Store should have comment or be unexported (golint)
    • Line 26: warning: exported function NewStore should have comment or be unexported (golint)
    • /git.mills.io/prologic/pollinator/models.go
    • Line 12: warning: exported type Question should have comment or be unexported (golint)
    • Line 18: warning: exported type Poll should have comment or be unexported (golint)
    • Line 61: warning: exported method Poll.Bytes should have comment or be unexported (golint)
    • Line 69: warning: exported type Polls 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!


misspell93%

Misspell Finds commonly misspelled English words