Skip to content

Quickstart

After installing, point banshee at a file, a directory (walked for *.sql), or stdin (-).

Terminal window
echo "select id,name from users where active=true" | banshee format -
SELECT id, name
FROM users
WHERE active = true

Use banshee format --write . to rewrite files in place, or --check (exit code 1 if anything is unformatted) in CI.

Terminal window
echo "select * from a, b" | banshee lint -
warning[AM04]: Avoid SELECT *; list columns explicitly
warning[AM05]: Implicit cross join; use an explicit JOIN clause

banshee fix applies every available autofix; banshee explain AM04 prints the rationale and a before/after example. Browse every rule in the rule reference.

0 clean · 1 findings or unformatted input · 2 error. That is the CI contract — see CI integration.