# dotenv-linter/dotenv-linter

⚡️Lightning-fast linter for .env files. Written in Rust 🦀

Repository: https://github.com/dotenv-linter/dotenv-linter
Canonical: https://ross.abutalabs.com/products/dotenv-linter
Homepage: https://dotenv-linter.github.io
Language: Rust
License: MIT
License Family: permissive
Topics: env, dotenv, dotenv-linter, linter, rust, rust-lang, contributors-welcome, contributor-friendly, check, fix, compare, hacktoberfest
Last push: 2026-02-05T18:55:33+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 66, release rhythm 21, longevity 100
- inputs: {"age_days": 2468, "days_push": 209, "days_rel": 319, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2101, forks 165 (observed 2026-08-28T04:06:13.550449+00:00)

## What it is
A lightning-fast linter for .env files written in Rust. It checks, fixes, and diffs environment variable files for problems like duplicated keys, incorrect delimiters, and formatting issues that could cause application malfunctions.

## Use cases
- lint .env files for errors
- automatically fix dotenv file issues
- check for duplicated environment variable keys
- validate env file formatting in CI
- compare .env files for differences
- enforce consistent env variable naming conventions

## When to choose
- your project uses .env files and you want to catch misconfigurations early
- you need fast, automated env file validation in CI pipelines
- you want to auto-fix common dotenv formatting problems

## When to avoid
- you don't use .env files for configuration
- you need general-purpose linting beyond environment files

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, cli, developer-tools, configuration-management
- domain: developer-tools
- platform: cli, cross-platform, rust
- tags: dotenv, env-files, linting, auto-fix, rust, command-line, devops, automation

## Member repositories
- dotenv-linter/dotenv-linter (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.550449+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:54:17.699136+00:00, confidence not recorded.
  - readme: https://github.com/dotenv-linter/dotenv-linter (fetched 2026-08-28T04:06:13.550449+00:00, sha 714cb3197c96)
  - homepage: https://dotenv-linter.github.io (fetched 2026-08-29T10:34:28.033097+00:00, sha 19f453ad4b40)
  - registry_crates: https://crates.io/api/v1/crates/dotenv-linter (fetched 2026-08-29T10:34:28.042698+00:00, sha 97e999d46454)
- Data as of 2026-08-30T08:39:29.467469+00:00.
