v0.0.12
joereynolds
released this
10 Feb 16:43
·
160 commits
to typescript
since this release
-
New check for unmatched parentheses in queries
- If there is an unbalanced amount of parentheses, sql-lint will
highlight this to you to make changes
- If there is an unbalanced amount of parentheses, sql-lint will
-
Simple checks can be ran without a configuration file
- Whereas before, a configuration file was mandatory even if it was
not used, we now do not require one at all unless you want more
intelligent errors to come through
- Whereas before, a configuration file was mandatory even if it was
-
Fix the keyword 'OR' breaking the InvalidCreateOption check
-
Port number is now configurable
- You can specify
port
in your.config.json
configuration file or
you can pass the--port
on the command line to use a non-standard
port. Note that it defaults to 3306 if none are supplied
- You can specify
-
Limited (heh) support for LIMIT has been added
- The LIMIT clause is now recognised in SELECT statements as well as
the row count
- The LIMIT clause is now recognised in SELECT statements as well as
-
New check for invalid row counts on LIMIT clauses
-
If you specify a non-integer argument to LIMIT,
sql-lint
will
highlight this to you to make changes -
sql-lint
no longer dies onDELIMITER
orEND
keywords -
Exit with an exit code of 1 if any errors occur
- This allows us to integrate it into build scripts etc...
-
Better documentation
sql-lint
s docs have moved over to readthedocs
sql-lint.readthedocs.io
The format is better and they are easily searchable. An offline
solution such as a man/info page will be coming in the future