Package-level comments for static analyzers (#7332)

* package-level comments
* Merge refs/heads/master into analyzer-package-comments
This commit is contained in:
Radosław Kapka
2020-09-24 12:25:55 +02:00
committed by GitHub
parent 4d232feda8
commit e1cd9143e0
6 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
// Package comparesame implements a static analyzer to ensure that code does not contain
// comparisons of identical expressions.
package comparesame
import (
@@ -13,7 +15,7 @@ import (
)
// Doc explaining the tool.
const Doc = "Tool to detect comparison (==, !=, >=, <=, >, <) of identical boolean expressions."
const Doc = "Tool to detect comparison (==, !=, >=, <=, >, <) of identical expressions."
const messageTemplate = "Boolean expression has identical expressions on both sides. The result is always %v."

View File

@@ -1,3 +1,5 @@
// Package cryptorand implements a static analyzer to ensure that the crypto/rand package is used
// for randomness throughout the codebase.
package cryptorand
import (

View File

@@ -1,3 +1,4 @@
// Package featureconfig implements a static analyzer to prevent leaking globals in tests.
package featureconfig
import (

View File

@@ -1,3 +1,4 @@
// Package maligned implements a static analyzer to ensure that Go structs take up the least possible memory.
package maligned
import (

View File

@@ -1,3 +1,4 @@
// Package nop implements a static analyzer to ensure that code does not contain no-op instructions.
package nop
import (

View File

@@ -1,3 +1,5 @@
// Package shadowpredecl implements a static analyzer which disallows declaring constructs
// that shadow predeclared Go identifiers by having the same name.
package shadowpredecl
import (