Preparing report...

Report for github.com/slysterous/scrapmon

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


gocyclo92%

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.


golint72%

Golint is a linter for Go source code.

    • scrapmon/internal/log/log.go
    • Line 5: warning: exported type Logger should have comment or be unexported (golint)
    • Line 13: warning: comment on exported type Log should be of the form "Log ..." (with optional leading article) (golint)
    • Line 18: warning: exported method Log.SetLevel should have comment or be unexported (golint)
    • scrapmon/internal/scrapmon/concurrentdownloader.go
    • Line 32: warning: exported method ConcurrentScrapper.DownloadFiles should have comment or be unexported (golint)
    • Line 83: warning: context.Context should be the first parameter of a function (golint)
    • Line 83: warning: exported method ConcurrentScrapper.SaveFiles should have comment or be unexported (golint)
    • scrapmon/internal/postgres/postgres.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 61: warning: exported method Client.UpdateScrapStatusByCode should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.UpdateScrapByCode should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.GetLatestCreatedScrapCode should have comment or be unexported (golint)
    • Line 153: warning: exported method Client.Purge should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell80%

Misspell Finds commonly misspelled English words