Q050hintnew in Seagull

Alias prefix used

A directive uses the seagull. alias rather than the canonical sgl. prefix.

db/queries/example.sql:1:4: hint[Q050]: directive prefix "seagull" is an alias; write "sgl"
help: did you mean "sgl"?
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

Both prefixes work. The hint is off unless you run sgl vet --strict or set directives.require_canonical in sgl.yaml.

How to fix it

Run sgl fmt -w to rewrite aliases to sgl.

See it in an example

In your terminal

$ sgl explain Q050

Look for AliasPrefix in Seagull's source to see where it is reported.