False positive LT01 with COMMENT ON FUNCTION ... IS
#5808
Labels
bug
Something isn't working
fix corrupts sql
For identifying issues where running the fix command actually breaks the SQL - bad!
postgres
Issues relating to the Postgres dialect
Search before asking
What Happened
sqlfluff detects a false violation of LT01 with Postgres code in the form of
If
fix
is applied, it will be changed to:Expected Behaviour
No violation should be found.
Observed Behaviour
Linting fails LT01
How to reproduce
echo "COMMENT ON FUNCTION x IS 'y';" | sqlfluff lint --dialect postgres -
Dialect
postgres
Version
3.0.3
Configuration
None
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: