Preparing report...

Report for github.com/deeprefactoring/deeprefactoring-bot

A+    Excellent!    Found 5 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!


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!


golint50%

Golint is a linter for Go source code.

    • deeprefactoring-bot/internal/bot/service.go
    • Line 12: warning: comment on exported type BotAPI should be of the form "BotAPI ..." (with optional leading article) (golint)
    • Line 19: warning: exported type Service should have comment or be unexported (golint)
    • Line 25: warning: exported function NewServiceFromTgbotapi should have comment or be unexported (golint)
    • Line 44: warning: exported function NewService should have comment or be unexported (golint)
    • Line 48: warning: exported method Service.Listen should have comment or be unexported (golint)
    • Line 63: warning: exported method Service.HandleUpdate should have comment or be unexported (golint)
    • Line 107: warning: exported method Service.Send should have comment or be unexported (golint)
    • Line 113: warning: exported method Service.Greeting should have comment or be unexported (golint)
    • Line 118: warning: exported method Service.GoAwayMessage should have comment or be unexported (golint)
    • Line 123: warning: exported method Service.NextMeetup should have comment or be unexported (golint)
    • Line 128: warning: exported method Service.RollMessage should have comment or be unexported (golint)
    • Line 133: warning: exported method Service.Hammertime should have comment or be unexported (golint)
    • Line 138: warning: exported method Service.GetMessage should have comment or be unexported (golint)
    • deeprefactoring-bot/internal/bot/conf.go
    • Line 11: warning: exported type TelegramConfig should have comment or be unexported (golint)
    • Line 15: warning: exported type ApplicationConfig should have comment or be unexported (golint)
    • Line 19: warning: exported method ApplicationConfig.UnmarshalYAML should have comment or be unexported (golint)
    • Line 38: warning: exported type Config should have comment or be unexported (golint)
    • Line 43: warning: exported function NewConfig should have comment or be unexported (golint)
    • deeprefactoring-bot/internal/bot/messages.go
    • Line 21: warning: exported function ReplaceUsername should have comment or be unexported (golint)
    • Line 25: warning: exported function NextMeetupInfo should have comment or be unexported (golint)
    • Line 29: warning: exported function HammertimeInfo 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!