package
0.0.1
Repository: https://github.com/tetratelabs/istio-zana.git
Documentation: pkg.go.dev

# README

envvarlinter

envvarlinter ensures that non-test files don't use os.Getenv and os.LookupEnv and instead use the functions from pkg/env.

Allowlist

If, for some reason, you want to disable lint rule for a file, you can add the file path and rule ID in allowlist.go. Rule ID is the name of that rule file without .go extension. You could also specify file path in regex.

If you want to disable all rules for a file path, you can specify * as the ID.

Example:

var Allowlist = map[string][]string{
    "/istio/mixer/pkg/*": {"skip_issue", "short_skip"},
    "/istio/pilot/pkg/simply_test.go": {"*"},
}

Running envvarlinter

go run envvarlinter <target path>

# Packages

No description provided by the author

# Variables

Allowlist contains pairs of file and rule IDs.

# Structs

RulesMatcher filters out test files.