Skip to content

Commit

Permalink
Require alphabetical order in YAML files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypeedevlin authored and sean-rose committed Nov 30, 2021
1 parent 5895ee9 commit 98f7326
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dbt_coding_conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,23 @@ models:

<br>

#### Where there is not already an implied order, lists should be in alphabetical order.
Lists such as accepted values and source table names should be in alphabetical order, except where an order is implied (e.g. the order of columns in a model).

```yaml
sources:
- name: shopify
database: stitch
tables:
- addresses
- customers
- orders
- products
- shipments
```

<br>

## Packages

#### Use packages from [dbt Hub](https://hub.getdbt.com/) whenever possible.
Expand Down

0 comments on commit 98f7326

Please sign in to comment.