validate_env
Validate .env files for mistakes—placeholders, empty values, bad types, syntax errors, and exposed secrets—without printing any values.
Instructions
Check env files for mistakes, from names and shapes only (no value is ever printed). Flags: placeholders (changeme, your_key_here), empty values, trailing whitespace, unquoted spaces, CRLF, a BOM, values wrapped in literal quotes, undefined ${REF}s, duplicates, syntax errors; names that promise a type but disagree (*URL not a URL, *PORT out of range, booleans, integers, emails, JWTs, *PATH that does not exist); localhost URLs in production files; real-looking secrets inside a template; and secret-looking names with a browser-exposed prefix (VITE, NEXT_PUBLIC, REACT_APP, ...).
path: folder to scan. file: validate only this env file (relative to path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |