sql-formatter-org / sql-formatter-org/sql-formatter

Feature Request: Add setting to wrap lines

Open
#869 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
2.9k
Forks
456
Avg merge
3d 4h
Merged PRs (30d)
3

Description

Describe the Feature
Wrap lines longer than a certain number of characters

Why do you want this feature?
Our team want to limit sprawl across the page. Our guidelines say preferably wrap at 80, always before 100.
Terminals are wider now, but often you are in an IDE pane or looking at code within the database itself, so shorter helps.
I have seen https://marketplace.visualstudio.com/items?itemName=bradymholt.pgformatter has such a setting and a separate one for comments (which might be useful if there was a ridiculous link you wanted to include, or if you are happy for end-of-line comments to stretch out.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Begin by locating the formatter's TypeScript entry point and relevant formatting tests, then define the setting's behavior for SQL and comments; done means the requested configurable wrapping behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.