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

Sb sonarcloud issues #142

Merged
merged 5 commits into from
Mar 31, 2020
Merged

Sb sonarcloud issues #142

merged 5 commits into from
Mar 31, 2020

Conversation

stevebillings
Copy link
Contributor

Addressed the quality gate problems in clang and bazel

private boolean inQuotes = false;
private boolean quoteTypeIsDouble = false;

public boolean isLastCharWasEscapeChar() {
Copy link
Contributor

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".

Copy link
Contributor

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() {
Copy link
Contributor

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.

Comment on lines 110 to 112
if (!parserState.isInQuotes()) {
processNonQuotedChar(parserState, c, newString);
} else {
Copy link
Contributor

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.

@sonarcloud
Copy link

sonarcloud bot commented Mar 31, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

96.9% 96.9% Coverage
0.0% 0.0% Duplication

@stevebillings stevebillings merged commit 0cad8d9 into master Mar 31, 2020
@stevebillings stevebillings deleted the sb_sonarcloudIssues branch April 22, 2020 19:28
@snyk-bot snyk-bot mentioned this pull request May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants