Skip to content
HALOWERK

Codewerk

dotenv lint

Line checks follow dotenv-linter 4.0.0 (MIT): LeadingCharacter, KeyWithoutValue, IncorrectDelimiter, LowercaseKey, SpaceCharacter, QuoteCharacter, ValueWithoutQuotes, TrailingWhitespace, ExtraBlankLine, EndingBlankLine, DuplicatedKey, UnorderedKey (groups split by blank lines) and SubstitutionKey. The file is also parsed with dotenv 16.6.1 to report which lines it ignores and that the last duplicate wins. ${VAR} references to keys not defined in the file are listed. Secret detection uses key.

POST https://code.halowerk.com/v1/dotenv-lint

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
contentstringYes.env file content.
reference_keysarrayNoOptional keys expected (e.g. from .env.example) to report missing and extra keys.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "content"
  ],
  "properties": {
    "content": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500000,
      "description": ".env file content."
    },
    "reference_keys": {
      "type": "array",
      "maxItems": 2000,
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$",
        "maxLength": 200
      },
      "description": "Optional keys expected (e.g. from .env.example) to report missing and extra keys."
    }
  }
}

Open original schema

Published input example

{
  "content": "DB_HOST=localhost\ndb_port = 5432\nDB_PASSWORD=correct-horse-battery\nDB_HOST=db\n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’