Skip to content

feat: add FormatSqlTextBlockRecipe for SQL Text Blocks marked with // language=sql#20

Merged
mhagnumdw merged 9 commits into
mainfrom
text-block-marked
Apr 26, 2026
Merged

feat: add FormatSqlTextBlockRecipe for SQL Text Blocks marked with // language=sql#20
mhagnumdw merged 9 commits into
mainfrom
text-block-marked

Conversation

@mhagnumdw
Copy link
Copy Markdown
Owner

@mhagnumdw mhagnumdw commented Apr 24, 2026

No description provided.

@mhagnumdw mhagnumdw force-pushed the text-block-marked branch 3 times, most recently from 0e2ece8 to ccf426d Compare April 24, 2026 21:25
… language=sql

Add a new recipe that formats SQL in Java Text Blocks preceded by the
`// language=sql` comment (case-insensitive). This is the same language
injection comment recognized by IntelliJ IDEA for SQL syntax highlighting.
- Extract shared Text Block utilities to TextBlockFormatter (isTextBlock,
  formatTextBlockSql, getFileIndent)
- Refactor AnnotationOnlyOneArgumentProcessor to use TextBlockFormatter
- Add FormatSqlTextBlockRecipe with FormatSqlTextBlockVisitor
- Add FormatSqlTextBlockRecipeTest with 10 test scenarios (including
  multiple variables in a single declaration)
- Update README.md with documentation for the new recipe
@mhagnumdw mhagnumdw marked this pull request as ready for review April 25, 2026 21:20
@sonarqubecloud
Copy link
Copy Markdown

@mhagnumdw mhagnumdw merged commit 0f56fa8 into main Apr 26, 2026
2 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.

1 participant