Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unmatched-parentheses should ignore tokens inside strings #200

Open
blx opened this issue Nov 24, 2021 · 0 comments
Open

unmatched-parentheses should ignore tokens inside strings #200

blx opened this issue Nov 24, 2021 · 0 comments

Comments

@blx
Copy link

blx commented Nov 24, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant