Skip to main content

Module env_auditor

Module env_auditor 

Source
Expand description

Env-file auditor for Limitless CLI.

Compares a project’s .env against its .env.example template, flags empty or missing critical configuration, and suggests concrete next steps.

§Scenarios

  • .env.example present, .env missing → Warn with a copy hint.
  • Both present → keys are compared; critical variables that the template requires but the .env leaves empty or omits → Fail.
  • .env present without a template → the well-known critical variables are checked directly.
  • Neither present → Pass (some projects need no environment).

Constants§

CRITICAL_VARS
Variable names treated as critical. When the template uses one of these, the .env must carry it with a non-empty value.

Functions§

audit_env_files
Audits the .env configuration of a repository root.
parse_env
Parses .env-style content into a key -> value map.