squawk-linter

Crates.iosquawk-linter
lib.rssquawk-linter
version2.27.0
created_at2020-07-10 19:54:15.020106+00
updated_at2025-09-25 03:41:00.05799+00
descriptionLinter for Postgres migrations & SQL
homepagehttps://squawkhq.com
repositoryhttps://github.com/sbdchd/squawk
max_upload_size
id263810
size280,876
Steve Dignam (sbdchd)

documentation

https://squawkhq.com/docs/

README

linter

Error message style guide

Lock messages

Each lock name should be:

  • accompanied by an explanation of its meaning in simple terms
  • tables that are affected

Instead of:

Changing the size of a `varchar` field requires an `ACCESS EXCLUSIVE` lock.

include a lock description & table name:

Changing the size of a `varchar` field requires an `ACCESS EXCLUSIVE` lock, which prevents reads and writes to `users`.

Help

A help message should be short an actionable.

Instead of:

You can remove the `CASCADE` keyword and then specify exactly which tables you want to truncate directly.

tell the user what to change (add, update, remove):

Remove the `CASCADE` and specify exactly which tables you want to truncate.
Commit count: 497

cargo fmt