Preparing report...

Report for github.com/KittyBot-Org/KittyBotGo

(v0.0.0-20220228015108-a4f7ab9112b9)

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


gocyclo91%

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.


golint16%

Golint is a linter for Go source code.

    • internal/types/module.go
    • Line 7: warning: exported method Bot.LoadModules should have comment or be unexported (golint)
    • Line 27: warning: exported type Module should have comment or be unexported (golint)
    • Line 29: warning: exported type CommandsModule should have comment or be unexported (golint)
    • Line 33: warning: exported type ListenerModule should have comment or be unexported (golint)
    • Line 37: warning: exported type CommandModule should have comment or be unexported (golint)
    • Line 41: warning: exported method CommandModule.Commands should have comment or be unexported (golint)
    • modules/test/test.go
    • Line 15: warning: exported type Module should have comment or be unexported (golint)
    • Line 17: warning: exported method Module.Commands should have comment or be unexported (golint)
    • Line 32: warning: exported method Module.OnEvent should have comment or be unexported (golint)
    • internal/types/config.go
    • Line 12: warning: exported method Bot.LoadConfig should have comment or be unexported (golint)
    • Line 39: warning: exported type Config should have comment or be unexported (golint)
    • Line 48: warning: exported type Database should have comment or be unexported (golint)
    • internal/types/listeners.go
    • Line 5: warning: exported function NewListeners should have comment or be unexported (golint)
    • Line 11: warning: exported type Listeners should have comment or be unexported (golint)
    • Line 16: warning: exported method Listeners.AddListener should have comment or be unexported (golint)
    • Line 20: warning: exported method Listeners.OnEvent should have comment or be unexported (golint)
    • internal/types/bot.go
    • Line 14: warning: exported type Bot should have comment or be unexported (golint)
    • Line 24: warning: exported method Bot.SetupBot should have comment or be unexported (golint)
    • Line 33: warning: exported method Bot.StartBot should have comment or be unexported (golint)
    • internal/types/command.go
    • Line 9: warning: exported type CommandHandler should have comment or be unexported (golint)
    • Line 10: warning: exported type ComponentHandler should have comment or be unexported (golint)
    • Line 11: warning: exported type AutocompleteHandler should have comment or be unexported (golint)
    • Line 14: warning: exported type Command should have comment or be unexported (golint)
    • Line 21: warning: exported method Bot.SyncCommands should have comment or be unexported (golint)
    • internal/types/command_map.go
    • Line 10: warning: exported function NewCommandMap should have comment or be unexported (golint)
    • Line 17: warning: exported type CommandMap should have comment or be unexported (golint)
    • Line 22: warning: exported method CommandMap.OnEvent should have comment or be unexported (golint)
    • Line 89: warning: exported method CommandMap.AddAll 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!