-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat(linters): implement sqlfmt #37
Conversation
Nancy checks the Go dependency graph against the Sonatype OSS index. Nancy comes in two flavors, sleuth and IQ, but only sleuth advertises a JSON output format, so we leave IQ alone for now. Also, sleuth can run into rate limits that require authz tokens to bypass; see https://github.com/sonatype-nexus-community/nancy#oss-index-options.
Trivy is a comprehensive security scanner: https://github.com/aquasecurity/trivy
This is a black-style formatter that is an alternative to sql-formatter for people.
Hi @sxlijin, I'm the creator of sqlfmt. Thanks so much for creating this integration! I don't know anything about Trunk, but I have a couple of suggestions:
Finally, I'd love to mention this integration in our documentation. Is this how someone would enable sqlfmt? # in trunk.yaml
lint:
enabled:
- [email protected] or it seems like the command |
Hi @tconbeer - glad to hear from you! (If you want to chat more synchronously, you can also pop into our community slack 😃 )
This actually feels like a mistake on my side - we treat (In the case where a linter/formatter errors out, we create a log file that contains all the details of the exec invocation we do on our side - cwd, argv, stdout, stderr, exit code.)
Yep - this will be the best way to do it. Under the hood, it'll query |
PR is here: #45 Thanks again for your help with this! |
This is a black-style formatter that is an alternative to sql-formatter for people.