Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for lostcancel (0.17 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    	"golang.org/x/tools/go/cfg"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name: "lostcancel",
    	Doc:  analysisutil.MustExtractDoc(doc, "lostcancel"),
    	URL:  "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/lostcancel",
    	Run:  run,
    	Requires: []*analysis.Analyzer{
    		inspect.Analyzer,
    		ctrlflow.Analyzer,
    	},
    }
    
    const debug = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/doc.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package lostcancel defines an Analyzer that checks for failure to
    // call a context cancellation function.
    //
    // # Analyzer lostcancel
    //
    // lostcancel: check cancel func returned by context.WithCancel is called
    //
    // The cancellation function returned by context.WithCancel, WithTimeout,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 632 bytes
    - Viewed (0)
  3. src/cmd/vet/main.go

    	"golang.org/x/tools/go/analysis/passes/httpresponse"
    	"golang.org/x/tools/go/analysis/passes/ifaceassert"
    	"golang.org/x/tools/go/analysis/passes/loopclosure"
    	"golang.org/x/tools/go/analysis/passes/lostcancel"
    	"golang.org/x/tools/go/analysis/passes/nilfunc"
    	"golang.org/x/tools/go/analysis/passes/printf"
    	"golang.org/x/tools/go/analysis/passes/shift"
    	"golang.org/x/tools/go/analysis/passes/sigchanyzer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/flagdefs.go

    	"defers":           true,
    	"directive":        true,
    	"errorsas":         true,
    	"framepointer":     true,
    	"httpresponse":     true,
    	"ifaceassert":      true,
    	"loopclosure":      true,
    	"lostcancel":       true,
    	"methods":          true,
    	"nilfunc":          true,
    	"printf":           true,
    	"rangeloops":       true,
    	"shift":            true,
    	"sigchanyzer":      true,
    	"slog":             true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/vet/doc.go

    	httpresponse     check for mistakes using HTTP responses
    	ifaceassert      detect impossible interface-to-interface type assertions
    	loopclosure      check references to loop variables from within nested functions
    	lostcancel       check cancel func returned by context.WithCancel is called
    	nilfunc          check for useless comparisons between functions and nil
    	printf           check consistency of Printf format strings and arguments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 00:17:30 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    	//      ...
    	//    }
    	//
    	//    ignoringTheErrorWouldBeVeryBad() // oops
    	//
    
    	// List standard library functions here.
    	// The context.With{Cancel,Deadline,Timeout} entries are
    	// effectively redundant wrt the lostcancel analyzer.
    	funcs = stringSetFlag{
    		"context.WithCancel":   true,
    		"context.WithDeadline": true,
    		"context.WithTimeout":  true,
    		"context.WithValue":    true,
    		"errors.New":           true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/modules.txt

    golang.org/x/tools/go/analysis/passes/ifaceassert
    golang.org/x/tools/go/analysis/passes/inspect
    golang.org/x/tools/go/analysis/passes/internal/analysisutil
    golang.org/x/tools/go/analysis/passes/loopclosure
    golang.org/x/tools/go/analysis/passes/lostcancel
    golang.org/x/tools/go/analysis/passes/nilfunc
    golang.org/x/tools/go/analysis/passes/printf
    golang.org/x/tools/go/analysis/passes/shift
    golang.org/x/tools/go/analysis/passes/sigchanyzer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/internal/test2json/testdata/vet.json

    {"Action":"pass","Test":"TestVet/4"}
    {"Action":"output","Test":"TestVet/1","Output":"    --- PASS: TestVet/1 (0.07s)\n"}
    {"Action":"output","Test":"TestVet/1","Output":"        vet_test.go:114: files: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"}
    {"Action":"pass","Test":"TestVet/1"}
    {"Action":"output","Test":"TestVet/7","Output":"    --- PASS: TestVet/7 (0.19s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. src/cmd/vet/vet_test.go

    	for _, pkg := range []string{
    		"appends",
    		"asm",
    		"assign",
    		"atomic",
    		"bool",
    		"buildtag",
    		"cgo",
    		"composite",
    		"copylock",
    		"deadcode",
    		"directive",
    		"httpresponse",
    		"lostcancel",
    		"method",
    		"nilfunc",
    		"print",
    		"shift",
    		"slog",
    		"structtag",
    		"testingpkg",
    		// "testtag" has its own test
    		"unmarshal",
    		"unsafeptr",
    		"unused",
    	} {
    		pkg := pkg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/cmd/internal/test2json/testdata/smiley.json

    {"Action":"pass","Test":"Test☺☹/4"}
    {"Action":"output","Test":"Test☺☹/1","Output":"    --- PASS: Test☺☹/1 (0.07s)\n"}
    {"Action":"output","Test":"Test☺☹/1","Output":"        vet_test.go:114: φιλεσ: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"}
    {"Action":"pass","Test":"Test☺☹/1"}
    {"Action":"output","Test":"Test☺☹/7","Output":"    --- PASS: Test☺☹/7 (0.19s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.4K bytes
    - Viewed (0)
Back to top