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

Feature Request: Insert semicolon if it is not there

Open
#233 3 comments 2 reactions 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
If the query doesn't have a semicolon, have an option to insert it

Why do you want this feature?
For sanity reasons I'd like to have a semicolon after every query. Even if it is the only query to be formatted.

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

No files or tests are named. Start by locating the formatter's option handling and existing semicolon logic, then check how queries without a semicolon are formatted. Done means an option can add a semicolon to a query that lacks one, with coverage for the requested behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.