Skip to content

Consistent format in examples#261

Merged
thomasp85 merged 2 commits intoposit-dev:mainfrom
thomasp85:example-format
Mar 24, 2026
Merged

Consistent format in examples#261
thomasp85 merged 2 commits intoposit-dev:mainfrom
thomasp85:example-format

Conversation

@thomasp85
Copy link
Collaborator

This PR ensures consistency in how we format ggsql code in examples.

The rules (which we should follow onwards) are:

  1. 2-space tab widrth
  2. Main clauses are never indented
  3. subclauses gets on a new line, indented
  4. Certain subclauses are exempt from this:
  • FROM, TO, VIA in SCALE
  • TO in `PROJECT``
  1. If content of a subclause cannot fit in a line it goes on a new line and is separated at commas
  2. Blank line between SQL query and VISUALISE

@thomasp85 thomasp85 merged commit ecbba24 into posit-dev:main Mar 24, 2026
18 checks passed
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