we have a lot of SQL in our codebase and would be nice to lint these as well.
not sure which linter would be the best
In https://github.com/github/super-linter/issues/115
I mentioned https://github.com/diffplug/spotless
which would allow to solve simultaneously Java, Kotlin, Scala, Groovy and SQL support in a unified way.
For SQL it would use https://github.com/diffplug/spotless/blob/main/lib/src/main/java/com/diffplug/spotless/sql/DBeaverSQLFormatterStep.java
so from this tool
https://github.com/dbeaver/dbeaver/wiki/SQL-Formatting
Also check out: https://github.com/alanmcruickshank/sqlfluff
This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.
If you think this issue should stay open, please remove the O: stale 馃 label or comment on the issue.
Bump to prevent stale issue tagging.
Most helpful comment
In https://github.com/github/super-linter/issues/115
I mentioned https://github.com/diffplug/spotless
which would allow to solve simultaneously Java, Kotlin, Scala, Groovy and SQL support in a unified way.
For SQL it would use https://github.com/diffplug/spotless/blob/main/lib/src/main/java/com/diffplug/spotless/sql/DBeaverSQLFormatterStep.java
so from this tool
https://github.com/dbeaver/dbeaver/wiki/SQL-Formatting