sql-lint
sql-lint copied to clipboard
unmatched-parentheses should ignore tokens inside strings
Hello 👋
Currently the unmatched-parentheses
check uses a pair of regexes that aren't aware of quoted strings:
❯ echo 'INSERT INTO t (a) VALUES ("(((");' | ./node_modules/.bin/sql-lint
stdin:1 [sql-lint: unmatched-parentheses] Unmatched parentheses.
❯ ./node_modules/.bin/sql-lint --version
0.0.19