Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Supported languages
* **Shell script** ([*beautysh*](https://github.com/lovesegfault/beautysh), [*shfmt*](https://github.com/mvdan/sh))
* **Snakemake** ([*snakefmt*](https://github.com/snakemake/snakefmt))
* **Solidity** ([*prettier plugin*](https://github.com/prettier-solidity/prettier-plugin-solidity))
* **SQL** ([*pgformatter*](https://github.com/darold/pgFormatter), [*sqlformat*](https://pypi.org/project/sqlparse/))
* **SQL** ([*pgformatter*](https://github.com/darold/pgFormatter), [*sqlformat*](https://pypi.org/project/sqlparse/), [*sqlfluff*](https://sqlfluff.com))
* **Svelte** ([*prettier plugin*](https://github.com/sveltejs/prettier-plugin-svelte))
* **Swift** ([*swiftformat*](https://github.com/nicklockwood/SwiftFormat))
* **Terraform** ([*terraform fmt*](https://www.terraform.io/docs/commands/fmt.html))
Expand Down
9 changes: 8 additions & 1 deletion format-all.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
;; - Shell script (beautysh, shfmt)
;; - Snakemake (snakefmt)
;; - Solidity (prettier plugin)
;; - SQL (pgformatter, sqlformat)
;; - SQL (pgformatter, sqlformat, sqlfluff)
;; - Svelte (prettier plugin)
;; - Swift (swiftformat)
;; - Terraform (terraform fmt)
Expand Down Expand Up @@ -1363,6 +1363,13 @@ Consult the existing formatters for examples of BODY."
process-environment)))
(format-all--buffer-easy executable "--encoding" ienc "-"))))

(define-format-all-formatter sqlfluff
(:executable "sqlfluff")
(:install "pip install sqlfluff")
(:languages "SQL")
(:features)
(:format (format-all--buffer-easy executable "fix" "--nocolor" "--dialect=postgres" "-")))

(define-format-all-formatter standard
(:executable "standard")
(:install "npm install --global standard")
Expand Down