callerenv

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 5 Imported by: 0

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

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL