ksql-lint is a CLI tool for linting KSQLDB commands/queries, designed for use in CI/CD pipelines. It uses the official KSQLDB grammar from Confluent's ANTLR parser to validate KSQLDB statements syntax. The current version (1.0.1) is released under the MIT license. Key differentiators: direct grammar-based validation, simple CLI usage, exit codes for CI integration. It supports ANTLR 4.12 and is available via npx.
npm install ksql-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint all .ksql files in the migrations directory using npx, output errors to console.
Regenerate parser using generate.sh with updated ANTLR version in package.json and Docker image.
Ensure pipeline checks exit code; no additional action needed.
Use quoted glob patterns like '*.ksql'
Install locally: npm install antlr4
Use npx ksql-lint --grammar to check version; consider updating grammar
Run via npx or install globally: npm install -g ksql-lint