Skip to content

Tags: coderaiser/sql-lint

Tags

v1.0.2

Toggle v1.0.2's commit message
Bump to v1.0.2

v1.0.1

Toggle v1.0.1's commit message
Release v1.0.1

v1.0.0

Toggle v1.0.0's commit message
Bump to v1.0.0

v0.0.20

Toggle v0.0.20's commit message
Bump to v0.0.20

v0.0.19

Toggle v0.0.19's commit message
Set version to 0.0.19

v0.0.18

Toggle v0.0.18's commit message
Bump to v0.0.18

v0.0.17

Toggle v0.0.17's commit message
Bump to 0.0.17

v0.0.14

Toggle v0.0.14's commit message
v0.0.14

This version sees many updated and improvements made so let's dig in:

- sql-lint now recurses over directories. A simple `sql-lint .` will
lint all `.sql` files in your current directory
- The --file and -f flag has been removed. Now you can specify it right
away without a flag i.e. `sql-lint my-file.sql
- The --query and -q flag has been removed. These were unneccessary and
if you want to lint a fixed string, you can do so via the stdin i.e.
`echo | 'DELETE FROM person;' | sql-lint
- A new check for hungarian notation has been created. This will warn of
any `sp_` or `tbl_` prefixes
- Linting errors now carry extra information about them. If you want to
see this information, pass the `-v` flag through on the command line
- `ALTER COLUMN` statements now work for postgres users
- The wording around a missing config file has been updated to give you
better guidance
- The warning about missing a config file will only show if `-v` is set
- sql-lint will correctly fail if a file is not found that was specified
- An **extremely** basic sql formatter is in place. Do not expect much
you can experiment with it using the `--fix` flag

There are many other changes that can be glanced at through the commit
history but those are the main ones. As you can see, a lot of work has
been put in to make the CLI easier and more intuitive to use.