Documentation
¶
Overview ¶
Package callerenv refuses a read of the whole environment of the caller in the test kit, the repository gates, and the TLC runner. Only extensionrepo.NewOwnedRun reads it, as Analyzers in contract.md defines.
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 os.Environ in the test kit, the repository gates, and the TLC runner outside extensionrepo.NewOwnedRun",
Run: run,
}
Analyzer reports os.Environ and syscall.Environ outside the constructor of owned runs.
Functions ¶
This section is empty.
Types ¶
This section is empty.