A lightning-fast linter for .env files that checks, fixes, and diffs environment variable configurations.
dotenv-linter is a command-line tool that checks, fixes, and compares .env files for configuration errors. It ensures environment variable files follow proper formatting rules and helps prevent application issues caused by malformed configurations.
Developers and DevOps engineers working with environment variables across any programming language who need to maintain clean, consistent .env files.
Developers choose dotenv-linter for its exceptional speed due to being written in Rust, comprehensive rule set, and ability to automatically fix issues—making it more efficient than manual validation or slower alternatives.
⚡️Lightning-fast linter for .env files. Written in Rust 🦀
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Built in Rust, it executes checks in milliseconds, outperforming a Python alternative by 60 times in benchmarks provided in the README.
Works with any programming language since .env files are universal, making it ideal for polyglot projects or teams switching stacks, as emphasized in the key features.
Easily integrates with GitHub Actions, reviewdog, and Super-Linter, with dedicated documentation for automated pipeline checks, as shown in the CI section.
Automatically fixes common issues like duplicated keys and trailing whitespace, reducing manual effort, demonstrated in the fix command examples.
It only validates .env files, so projects using other configuration formats won't benefit, and the README admits no support for JSON or YAML.
Requires CLI usage or CI setup; there's no mention of IDE plugins, which might hinder adoption for developers preferring GUI tools.
Not all checks are auto-fixable—e.g., schema violations may need manual intervention, as the README lists checks without specifying full auto-fix scope.