bbuck/dragon-mud

View on GitHub

Showing 5 of 5 total issues

Function configureTargets has a Cognitive Complexity of 29 (exceeds 20 allowed). Consider refactoring.
Open

func configureTargets() io.Writer {
if viper.IsSet("log.targets") {
var (
writers []io.Writer
logTargets []logTarget
Severity: Minor
Found in logger/logger.go - About 1 hr to fix

Avoid deeply nested control flow statements.
Open

if err != nil {
panic(fmt.Errorf("Failed creating a file log target: %s", err))
}
Severity: Major
Found in logger/logger.go - About 45 mins to fix

    8: cannot find package "github.com/spf13/cobra" in any of:
    Open

    import "github.com/spf13/cobra"
    Severity: Minor
    Found in cli/root.go by govet

    TODO found
    Open

    // TODO: Make this customizable
    Severity: Minor
    Found in logger/logger.go by fixme

    TODO found
    Open

    // TODO: Set logging level
    Severity: Minor
    Found in logger/logger.go by fixme
    Severity
    Category
    Status
    Source
    Language