Documentation
¶
Overview ¶
Package callerenv refuses whole caller environment reads in the test kit, repository gates, TLC runner and their child packages. The exact allowed readers are listed below and in Analyzers of contract.md.
At the parent of 09809608, the lifecycle check of the kit passed os.Environ() to a scratch install, which replaced HOME and kept an invalid NCLY_CONFIG. Each other caller filtered its own copy. The rule reads each use of os.Environ or syscall.Environ, a call or a function value, in production files. It skips test files, because a test can read its caller on purpose. A program that starts with no Env inherits the caller too, and the rule cannot see that.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Analyzer = &analysis.Analyzer{
Name: "callerenv",
Doc: "refuse whole caller environment reads in owned SDK package trees outside their exact allowed readers",
Run: run,
}
Analyzer reports os.Environ and syscall.Environ outside the exact allowed readers in the owned package trees.
Functions ¶
This section is empty.
Types ¶
This section is empty.