SQLFluff `exclude_rules` configuration ignored

956 Views Asked by At

I have this in my .sqlfluff, as per SQLFluff's documentation:

[sqlfluff]
exclude_rules = L003

When I run sqlfluff lint in the same directory where the configuration file is located, it still checks rule L003. What am I missing to exclude it?

1

There are 1 best solutions below

1
On

The rules to be excluded are comma-separated even when there is only one so you need to write:

[sqlfluff]
exclude_rules = L003,