sql-formatter-org / sql-formatter-org/sql-formatter
Feature Request: Add setting to wrap lines
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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