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

Add "nested block comments" check #310

Open
NJohnson9402 opened this issue Sep 23, 2022 · 0 comments
Open

Add "nested block comments" check #310

NJohnson9402 opened this issue Sep 23, 2022 · 0 comments

Comments

@NJohnson9402
Copy link

In plain TSQL syntax, nested block comments are OK; however, in Liquibase formatted TSQL, they cause a breaking syntax error.

Example:

SELECT *
FROM dbo.Foo
/* this is a comment
   /* this is a nested comment
      block of text
   */
   more text
*/
WHERE Name = 'Bar'

I understand this repo has nothing to do with Liquibase, but it does highlight the fact that this kind of comment behavior is silly and should be flagged, at least as a warning. Thanks for considering!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants