sql-lint icon indicating copy to clipboard operation
sql-lint copied to clipboard

unmatched-parentheses should ignore tokens inside strings

Open blx opened this issue 2 years ago • 0 comments

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

blx avatar Nov 24 '21 09:11 blx