waku-org/go-waku

View on GitHub
examples/noise/main.go

Summary

Maintainability
A
2 hrs
Test Coverage

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

func main() {
    // Removing noisy logs
    lvl, err := logging.LevelFromString("error")
    if err != nil {
        panic(err)
Severity: Minor
Found in examples/noise/main.go - About 1 hr to fix

    Function main has 6 return statements (exceeds 4 allowed).
    Open

    func main() {
        // Removing noisy logs
        lvl, err := logging.LevelFromString("error")
        if err != nil {
            panic(err)
    Severity: Major
    Found in examples/noise/main.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status