Files
vim-ale/dotenv-linter
AJ ONeal 23100394ac ref(installerconf): rename config keys and add full URL support
Renames:
- github_repo → github_releases (back-compat kept)
- github_source → github_sources (back-compat kept)
- gitea_repo → gitea_releases (back-compat kept)

New keys:
- gitea_sources, gitlab_releases, gitlab_sources

All keys now accept either owner/repo shorthand or full URLs:
- github_releases = sharkdp/bat
- github_releases = https://github.com/sharkdp/bat
- gitea_releases = https://git.rootprojects.org/root/pathman

Defaults: github → github.com, gitlab → gitlab.com.
Gitea has no default (self-hosted only).

Updated all 73 releases.conf files from github_repo to github_releases.
2026-03-11 11:51:43 -06:00
..
2026-03-08 19:38:49 -06:00

title, homepage, tagline
title homepage tagline
Dotenv Linter https://dotenv-linter.github.io/ dotenv-linter: Lightning-fast linter for .env files. Written in Rust 🦀

To update or switch versions, run webi dotenv-linter@stable (or @v3.3, @beta, etc).

Files

These are the files / directories that are created and/or modified with this install:

~/.config/envman/PATH.env
~/.local/bin/dotenv-linter

Windows Users

\Windows\System32\vcruntime140.dll

This will also attempt to install the Microsoft Visual C++ Redistributable via webi vcruntime. If it fails and you get the error vcruntime140.dll was not found, you'll need to install it manually.

Cheat Sheet

Dotenv Linter is a lightning-fast check for your .env files. It can rapidly detect and automatically fix issues.

By default, dotenv-linter checks all .env files in the current directory:

dotenv-linter

This is the same as the default behavior:

dotenv-linter .env .env.*

To lint .env files recursively, use -r:

dotenv-linter -r

For the complete usage, see the official Dotenv Linter Usage Guide.

How to automatically fix errors

Use the fix subcommand.

dotenv-linter fix

Backup files in the format of .env_0000000000 will be created by default.
You can use --no-backup to skip this.

How to compare keys between environements

Use the compare subcommand

dotenv-linter compare ./my-dev.env ./my-prod.env
Comparing my-dev.env
Comparing my-prod.env
my-dev.env is missing keys: FOO_API_TOKEN
my-prod.env is missing keys: BAR_ID, BAR_SECRET

How to toggle linter rules

You can turn off certain linter checks with --skip options, for example:

dotenv-linter --skip QuoteCharacter --skip UnorderedKey

You can see the full list of linter rules with dotenv-linter list:

DuplicatedKey
EndingBlankLine
ExtraBlankLine
IncorrectDelimiter
KeyWithoutValue
LeadingCharacter
LowercaseKey
QuoteCharacter
SpaceCharacter
SubstitutionKey
TrailingWhitespace
UnorderedKey
ValueWithoutQuotes