Preparing report...

Report for github.com/matthieudolci/hatcher

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


gocyclo80%

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.


golint60%

Golint is a linter for Go source code.

    • hatcher/common/common.go
    • Line 25: warning: exported function RowExists should have comment or be unexported (golint)
    • Line 38: warning: exported function QueryRow should have comment or be unexported (golint)
    • Line 51: warning: exported function QueryUUID should have comment or be unexported (golint)
    • Line 67: warning: exported function CreatesUUID should have comment or be unexported (golint)
    • hatcher/database/sql.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported var DB should have comment or be unexported (golint)
    • Line 22: warning: exported function InitDb should have comment or be unexported (golint)
    • hatcher/standup/standup.go
    • Line 15: warning: exported function AskStandupYesterday should have comment or be unexported (golint)
    • Line 127: warning: exported function AskStandupYesterdayScheduled should have comment or be unexported (golint)
    • Line 349: warning: exported function TodayRegister should have comment or be unexported (golint)
    • Line 466: warning: exported function BlockerRegister should have comment or be unexported (golint)
    • Line 614: warning: exported function CheckIfYesterdayMessageEdited should have comment or be unexported (golint)
    • Line 651: warning: exported function CheckIfTodayMessageEdited should have comment or be unexported (golint)
    • Line 688: warning: exported function CheckIfBlockerMessageEdited should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • hatcher/api/handler.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/matthieudolci/hatcher/bot (invalid package name: "") (ineffassign)
    • hatcher/help/help.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/slack-go/slack (invalid package name: "") (ineffassign)
    • hatcher/setup/setup.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/matthieudolci/hatcher/database (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/slack-go/slack (invalid package name: "") (ineffassign)
    • hatcher/bot/handler.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/matthieudolci/hatcher/scheduler (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/matthieudolci/hatcher/setup (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/slack-go/slack (invalid package name: "") (ineffassign)
    • hatcher/standup/standup.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/matthieudolci/hatcher/database (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/slack-go/slack (invalid package name: "") (ineffassign)
    • hatcher/bot/listen.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/matthieudolci/hatcher/help (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/matthieudolci/hatcher/standup (invalid package name: "") (ineffassign)
    • Line 10: warning: "github.com/matthieudolci/hatcher/help" imported but not used (ineffassign)
    • Line 11: warning: "github.com/matthieudolci/hatcher/setup" imported but not used (ineffassign)
    • Line 12: warning: "github.com/matthieudolci/hatcher/standup" imported but not used (ineffassign)
    • Line 7: warning: "strings" imported but not used (ineffassign)
    • hatcher/main.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/matthieudolci/hatcher/api (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/matthieudolci/hatcher/bot (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/matthieudolci/hatcher/database (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/matthieudolci/hatcher/scheduler (invalid package name: "") (ineffassign)
    • hatcher/common/common.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/matthieudolci/hatcher/database (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/satori/go.uuid (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/slack-go/slack (invalid package name: "") (ineffassign)
    • hatcher/database/sql.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/lib/pq (invalid package name: "") (ineffassign)
    • hatcher/scheduler/scheduler.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/matthieudolci/hatcher/common (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/matthieudolci/hatcher/standup (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/matthieudolci/gocron (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/matthieudolci/hatcher/database (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!