]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/vet: add lost checks in doc
authorAnton Telyshev <ant.telishev@gmail.com>
Sun, 29 Oct 2023 21:06:44 +0000 (23:06 +0200)
committerTim King <taking@google.com>
Tue, 21 Nov 2023 00:17:30 +0000 (00:17 +0000)
Change-Id: Iacbcb582e263149fede734822cba2df4b8162968
Reviewed-on: https://go-review.googlesource.com/c/go/+/544015
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tim King <taking@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/vet/doc.go

index ba5b5ed96741efdcf0562db60ceca995b72fbde8..5b2fa3d72fd1d1bf31ba06ac36d571e29e60e8be 100644 (file)
@@ -27,28 +27,38 @@ program correctness.
 
 To list the available checks, run "go tool vet help":
 
-       asmdecl      report mismatches between assembly files and Go declarations
-       assign       check for useless assignments
-       atomic       check for common mistakes using the sync/atomic package
-       bools        check for common mistakes involving boolean operators
-       buildtag     check that +build tags are well-formed and correctly located
-       cgocall      detect some violations of the cgo pointer passing rules
-       composites   check for unkeyed composite literals
-       copylocks    check for locks erroneously passed by value
-       httpresponse check for mistakes using HTTP responses
-       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
-       shift        check for shifts that equal or exceed the width of the integer
-       slog         check for incorrect arguments to log/slog functions
-       stdmethods   check signature of methods of well-known interfaces
-       structtag    check that struct field tags conform to reflect.StructTag.Get
-       tests        check for common mistaken usages of tests and examples
-       unmarshal    report passing non-pointer or non-interface values to unmarshal
-       unreachable  check for unreachable code
-       unsafeptr    check for invalid conversions of uintptr to unsafe.Pointer
-       unusedresult check for unused results of calls to some functions
+       appends          check for missing values after append
+       asmdecl          report mismatches between assembly files and Go declarations
+       assign           check for useless assignments
+       atomic           check for common mistakes using the sync/atomic package
+       bools            check for common mistakes involving boolean operators
+       buildtag         check //go:build and // +build directives
+       cgocall          detect some violations of the cgo pointer passing rules
+       composites       check for unkeyed composite literals
+       copylocks        check for locks erroneously passed by value
+       defers           report common mistakes in defer statements
+       directive        check Go toolchain directives such as //go:debug
+       errorsas         report passing non-pointer or non-error values to errors.As
+       framepointer     report assembly that clobbers the frame pointer before saving it
+       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
+       shift            check for shifts that equal or exceed the width of the integer
+       sigchanyzer      check for unbuffered channel of os.Signal
+       slog             check for invalid structured logging calls
+       stdmethods       check signature of methods of well-known interfaces
+       stringintconv    check for string(int) conversions
+       structtag        check that struct field tags conform to reflect.StructTag.Get
+       testinggoroutine report calls to (*testing.T).Fatal from goroutines started by a test
+       tests            check for common mistaken usages of tests and examples
+       timeformat       check for calls of (time.Time).Format or time.Parse with 2006-02-01
+       unmarshal        report passing non-pointer or non-interface values to unmarshal
+       unreachable      check for unreachable code
+       unsafeptr        check for invalid conversions of uintptr to unsafe.Pointer
+       unusedresult     check for unused results of calls to some functions
 
 For details and flags of a particular check, such as printf, run "go tool vet help printf".