stamm/dep_radar

View on GitHub
cmd/dep_radar/main.go

Summary

Maintainability
A
1 hr
Test Coverage

Function handlerAPI has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func handlerAPI(w http.ResponseWriter, r *http.Request) {
    w.Header().Add("Access-Control-Allow-Origin", "*")
    githubProv := github.New(github.NewHTTPWrapper(os.Getenv("GITHUB_TOKEN"), 10))
    provDetector := providers.NewDetector().AddProvider(githubProv)
    depDetector := deps.DefaultDetector()
Severity: Minor
Found in cmd/dep_radar/main.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status