wasilak/go-hello-world

View on GitHub

Showing 2 of 2 total issues

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

    Function Init has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func Init(ctx context.Context, listenAddr, logLevel *string, otelEnabled, statsvizEnabled *bool, tr trace.Tracer, traceProvider *trace.TracerProvider) {
    Severity: Minor
    Found in web/gin/gin.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language