Run sql-lint on more than one file

Viewed 56

Is there a way to run sql-lint on a bunch of files? All examples show how to run sql-lint on one file only (sql-lint -f ). Thanks!

1 Answers

Author of sql-lint here. There's some upcoming work to make it recurse down and lint every SQL file. In the meantime you can use this:

find . -iname "*.sql" | xargs -L1 sql-lint -f

Hope that helps!

Related