Skip to content

Reformat SQL queries - #3663

Open
badboy wants to merge 1 commit into
mainfrom
reformat-sql-queries/quozpukxsytx
Open

badboy wants to merge 1 commit into
mainfrom
reformat-sql-queries/quozpukxsytx

Conversation

@badboy

@badboy badboy commented Sep 25, 2026

Copy link
Copy Markdown
Member

I was getting annoyed by the uneven indentation of SQL statements and the fact that we (=me!) used raw strings, which we don't need here. So now it's all the same.

@badboy
badboy requested a review from a team as a code owner September 25, 2026 14:50
@badboy
badboy requested review from chutten and removed request for a team September 25, 2026 14:50

@chutten chutten left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we enforce this, and if not should we document it?

@badboy
badboy added this pull request to stack #3665 September 25, 2026 15:01
@badboy

badboy commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

Can we enforce this, and if not should we document it?

We cannot unless we introduce some custom logic doing it for us. rustfmt's format_strings is still unstable (and occasionally broken). Guess we can document it.

@badboy
badboy force-pushed the reformat-sql-queries/quozpukxsytx branch from 7177239 to fec040c Compare October 5, 2026 10:17
@badboy

badboy commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

Guess we can document it.

I just don't know where would be a good place.

@chutten

chutten commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Guess we can document it.

I just don't know where would be a good place.

A "Style Guide" page under https://mozilla.github.io/glean/dev/core/index.html that mentions the various fmt-* targets and includes this as its own section?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants