Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: set editorconfig to use spaces instead of tabs for sql files#19344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 6 commits intomainfromstevenmasley/sql_tabs_to_spaces
Aug 15, 2025
Merged
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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
MemberAuthor

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 wasdump.sql which is generated bypg_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

[8]ページ先頭

©2009-2025 Movatter.jp