Commit Graph

15 Commits

Author SHA1 Message Date
Hein 30801c747a fix(release): handle missing previous tag in release workflow
CI / Build (push) Has been cancelled
CI / Test (push) Has been cancelled
2026-06-29 11:59:56 +02:00
Hein dd91e7ed5a fix(release): improve release upload URL handling
CI / Test (push) Successful in 25s
CI / Build (push) Successful in 22s
* Added error handling for missing upload URL in release creation
* Replaced Python command with simpler grep and cut for extracting upload URL
* Removed unnecessary upload URL artifact upload step
2026-06-29 09:16:53 +02:00
Hein 2bee0e1ed9 ci: add CI and release workflows for automated builds
CI / Test (push) Successful in 25s
CI / Build (push) Successful in 31s
2026-06-29 09:02:56 +02:00
Hein 531087bfed fix: fixed compile issues and added build steps
CI / Test (push) Successful in 24s
CI / Build snapshot (push) Successful in 1m17s
2026-06-29 08:52:21 +02:00
warkanum 9243c281a6 docs: update README with installation and usage instructions
CI / Test (push) Successful in 23s
CI / Build snapshot (push) Failing after 49s
2026-06-28 18:08:41 +02:00
warkanum d1150a7eea feat(lsp): add textDocument/rangeFormatting support
CI / Test (push) Successful in 50s
CI / Build snapshot (push) Failing after 1m12s
Advertise DocumentRangeFormattingProvider in server capabilities and
implement rangeFormat: formats the complete document, then returns an
edit covering only the minimal changed-line region that overlaps the
client's selection. Also includes gofmt alignment fixes across lint
and format packages.
2026-06-28 16:28:27 +02:00
warkanum a98dee1877 feat(dml): implement DML statement formatting and tests
CI / Test (push) Failing after 45s
CI / Build snapshot (push) Has been skipped
* Add formatDML function for formatting top-level DML statements
* Introduce tests for various DML scenarios including SELECT, INSERT, UPDATE, and DELETE
* Enhance printer to handle DML statements correctly
2026-06-28 16:20:37 +02:00
warkanum f378bf4a18 feat(datagrip): add PgTidy formatting action for SQL files
CI / Test (push) Failing after 39s
CI / Build snapshot (push) Has been skipped
* Implement PgTidyFormatAction to format SQL using pgtidy
* Register action in plugin.xml with keyboard shortcut
* Update dependencies for bundled plugins
* Modify build configuration for Gradle wrapper
2026-06-28 15:24:08 +02:00
warkanum e88d32f281 feat: add LSP server, VSCode + DataGrip extensions, release infra, autofix
CI / Test (push) Failing after 47s
CI / Build snapshot (push) Has been skipped
- pkg/lsp: JSON-RPC 2.0 LSP server (formatting, diagnostics, codeAction quick-fixes)
- cmd/pgtidy: lsp and config subcommands
- pkg/diagnostics: TextFix struct for byte-range autofixes
- pkg/lint: MIG001/MIG003 autofixes, ApplyFixes helper, --fix flag on lint command
- editors/vscode: TypeScript extension with LanguageClient, showVersion/showConfig/formatDocument commands, logo
- editors/datagrip: Gradle JetBrains plugin via LSP4IJ, pluginIcon
- .goreleaser.yaml, .github/workflows: CI + release pipeline
- Makefile: snapshot, release, vscode-compile, vscode-package targets
- go.mod + all imports: module path updated to git.warky.dev/wdevs/pgtidy
- assets: logo files (256px, 128px, 1024px, ico)
2026-06-28 12:48:28 +02:00
warkanum 7fb76bae3d feat(lint): add linter rules for migration and naming conventions
* Implement migration safety rules:
  - MIG001: Warn on CREATE INDEX without CONCURRENT.
  - MIG002: Warn on ALTER TABLE ADD COLUMN NOT NULL without DEFAULT.
  - MIG003: Warn on ALTER TABLE ADD CONSTRAINT without NOT VALID.
* Implement naming conventions rules:
  - NAM001: Warn on non-snake_case table names.
  - NAM002: Warn on non-snake_case column names in CREATE TABLE.
  - NAM003: Warn on non-snake_case function names.
* Add test fixtures for all new rules.
2026-06-27 22:15:02 +02:00
warkanum 932c83dbad feat(cmd): add unified diff output option for formatting
* Implemented `-d`/`--diff` flag to print unified diffs.
* Added `unifiedDiff` function for generating diffs.
* Config discovery now merges fields from `.pgtidy.yaml`.
2026-06-27 19:32:57 +02:00
warkanum d4e6102932 feat(format): add PL/pgSQL body formatting and tests
* Implemented formatting for BEGIN...END blocks in PL/pgSQL.
* Added logic to handle indentation and blank lines.
* Introduced tests for broken formatting cases.
2026-06-27 19:10:02 +02:00
warkanum 6492ab35b7 feat(format): implement PL/pgSQL body formatting
* add formatBody and formatBodyInner functions for DECLARE section
* update needSpace to handle LBracket correctly
* enhance semanticallyEqual to compare dollar-quoted bodies
* add test data for broken layout scenarios
2026-06-23 21:15:27 +02:00
Hein 625ddc79a1 feat: initial plan 2026-06-23 16:59:50 +02:00
warkanum 90fe1a448b Initial commit 2026-06-23 11:50:55 +00:00