-
Notifications
You must be signed in to change notification settings - Fork 70
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
Sb sonarcloud issues #142
Sb sonarcloud issues #142
Conversation
private boolean inQuotes = false; | ||
private boolean quoteTypeIsDouble = false; | ||
|
||
public boolean isLastCharWasEscapeChar() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer we changed this as it reads strangely to me. So instead of "isLastCharWasEscapeChar" we could do "wasLastCharEscapeChar".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or if we wanted to keep the "is" maybe "isLastCharEscapeChar".
return inQuotes; | ||
} | ||
|
||
public boolean isQuoteTypeIsDouble() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly this reads strangely. Maybe "isDoubleQuoteType" instead.
if (!parserState.isInQuotes()) { | ||
processNonQuotedChar(parserState, c, newString); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nitpick, but could we swap the if so we aren't negating the statement? I think it makes it easier to read.
Kudos, SonarCloud Quality Gate passed!
|
Addressed the quality gate problems in clang and bazel