mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
Package-level comments for static analyzers (#7332)
* package-level comments * Merge refs/heads/master into analyzer-package-comments
This commit is contained in:
@@ -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."
|
||||
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Package featureconfig implements a static analyzer to prevent leaking globals in tests.
|
||||
package featureconfig
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Package maligned implements a static analyzer to ensure that Go structs take up the least possible memory.
|
||||
package maligned
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Package nop implements a static analyzer to ensure that code does not contain no-op instructions.
|
||||
package nop
|
||||
|
||||
import (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user