-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql :: missing OPTIONS for sqlparse
#218
Comments
Do you mean that the user args should come before the |
No, it is incorrect because |
This is more explicit: (format-all--buffer-easy executable "--keywords=upper" "--identifiers=lower" "--indent_width=4" "--reindent" "--encoding" ienc "-") I just saw this: https://github.com/sqlfluff/sqlfluff, which can do more auto styling and it comes with default styling configs but it is really a linter. |
Does it just return the old SQL unmodified? I so, that's a feature of sqlparse, not a bug. |
I'd be happy to accept a PR for sqlfluff if someone sends one. Here is the usage: https://docs.sqlfluff.com/en/stable/cli.html
|
Yes but then isn't that against the users expectation of running the I am happy with my hack at the moment but I will look into
|
It probably is surprising. The format-all policy is that counter-intuitive behavior should be fixed upstream in the formatter itself. If editor plug-ins like format-all set their own defaults for each formatter, then different plugins will inevitably set different defaults and users are going to be confused about where the settings are coming from. If the policy is that all defaults are set in the upstream formatter, that's simpler for both users and maintainers of the formatter and the plug-ins.
There is. Users can place the command line flags in the For example:
Thanks! Any help increasing formatter coverage is appreciated.
We try to be un-opinionated and add all formatters, even ones like |
Currently the formatter for
sqlformat
goes like this:Which is incorrect:
Output of
sqlformat --help
Currently I am using this hack:
Which will convert upcase keywords and reindent.
I am not sure about the standard of this project say if customisation is required, etc.
I can write a pull request if not one wants to write one.
The text was updated successfully, but these errors were encountered: