notyim/notyim

View on GitHub
extras/gaia/scanner/httpscanner/scanner.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function withClientTrace has 67 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func withClientTrace(ctx context.Context, r *Result) context.Context {
    trace := &httptrace.ClientTrace{
        DNSStart: func(i httptrace.DNSStartInfo) {
            r.dnsStart = time.Now()
        },
Severity: Minor
Found in extras/gaia/scanner/httpscanner/scanner.go - About 1 hr to fix

    Function Check has 57 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func Check(req *http.Request) *CheckResponse {
        req.Header.Set("User-Agent", "noty/2.0 (https://noty.im)")
        var result Result
    
        ctx := WithHTTPStat(req.Context(), &result)
    Severity: Minor
    Found in extras/gaia/scanner/httpscanner/scanner.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status