mirror of
https://github.com/golang/go
synced 2024-11-18 12:44:49 -07:00
go/analysis: add package docs for findcall, printf, and shadow
Change-Id: I966abb14b78262055b37a1a5db517fc55243be06 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212619 Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
6b505debf4
commit
065ed046f1
@ -2,13 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// The findcall package defines an Analyzer that serves as a trivial
|
||||
// Package findcall defines an Analyzer that serves as a trivial
|
||||
// example and test of the Analysis API. It reports a diagnostic for
|
||||
// every call to a function or method of the name specified by its
|
||||
// -name flag. It also exports a fact for each declaration that
|
||||
// matches the name, plus a package-level fact if the package contained
|
||||
// one or more such declarations.
|
||||
|
||||
package findcall
|
||||
|
||||
import (
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// This file contains the printf-checker.
|
||||
|
||||
// Package printf defines an Analyzer that checks consistency
|
||||
// of Printf format strings and arguments.
|
||||
package printf
|
||||
|
||||
import (
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package shadow defines an Analyzer that checks for shadowed variables.
|
||||
package shadow
|
||||
|
||||
import (
|
||||
|
Loading…
Reference in New Issue
Block a user