Linting Rules
This is a proposal for the .sqlfluff file, it's a combination of these 3:
- dbt proposed file
- Rules used by @mayakpwiki already: https://gist.github.com/fredbenenson/7bb92718e19138c20591
- .sqlfluff file defined already for Airflow and Refinery
Conflicts and decisions:
- Indentation: All are using spaces, but
dbtand Airflow use 4, Maya's team was using 2. This MR keeps 4. - Capilasitaion:
dbtproposed to uselowercase, but as Maya's team and Airflow are usinguppercase, we keep it asuppercase.
Many other rules are equal on Maya's team and the Airflow configuration, so keeping the Airflow .sqlfluff rules. Some rules described cannot be enforced and requires developers to follow them.
Bug: T417152