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

RegexpSinglelineCheck is broken for String literals that resemble comments #975

Open
korthout opened this issue Dec 31, 2018 · 2 comments
Open

Comments

@korthout
Copy link
Contributor

Consider the following code:

final var code = "/** A is a simple class */ class A { }";

Running Qulice on this code results in This kind of comment is not allowed. (RegexpSinglelineCheck). The RegexpSinglelineCheck matches the comment inside the String literal, even though it is not a real comment.

I think the regex should be altered to not match on comments inside String literals.

@0crat
Copy link
Collaborator

0crat commented Dec 31, 2018

@krzyk/z please, pay attention to this issue

@0crat
Copy link
Collaborator

0crat commented Dec 31, 2018

@korthout/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

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

3 participants