wasilak/go-hello-world

View on GitHub
main.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function main has 82 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func main() {
    ctx := context.Background()

    listenAddr := flag.String("listen-addr", "127.0.0.1:3000", "server listen address")
    logLevel := flag.String("log-level", os.Getenv("LOG_LEVEL"), "log level (debug, info, warn, error, fatal)")
Severity: Major
Found in main.go - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status