Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 15, 2025

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Aug 13, 2025

Use spaces consistently in *.sql files

Every file needs to be corrected 😢

Not going to do that in this PR

@Emyrk Emyrk changed the title chore: editorconfig to use spaces over tabs for sql chore: set editorconfig to use spaces instead of tabs for sql files Aug 13, 2025
@Emyrk Emyrk requested a review from aslilac August 14, 2025 15:24
@@ -18,3 +18,7 @@ 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

@Emyrk Emyrk merged commit e92af2b into main Aug 15, 2025
29 checks passed
@Emyrk Emyrk deleted the stevenmasley/sql_tabs_to_spaces branch August 15, 2025 13:02
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy