Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ indent_size = 2
[coderd/database/dump.sql]
indent_style = space
indent_size = 4

[coderd/database/queries/*.sql]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[coderd/database/queries/*.sql]
[*.sql]

it'd be nice if everything was included. we could reformat migrations, or at least format them going forward. with all of the views we have that need to be recreated when you edit an underlying table stuff ends up getting copied and pasted around a lot.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one I was avoiding was dump.sql which is generated by pg_dump and uses spaces. I don't want an editor config formatter to cause diffs in an autogenerated file.

I can extend this to migrations

indent_style = tab
indent_size = 4

[coderd/database/migrations/*.sql]
indent_style = tab
indent_size = 4
Loading