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

VP-2649: Fix Sonar cube critical bugs that prevent build on CI #428

Merged
merged 3 commits into from
Jun 2, 2020

Conversation

yecli
Copy link
Contributor

@yecli yecli commented May 29, 2020

No description provided.

@@ -113,12 +113,9 @@ public static CatalogProperty ToProperty(this catalogDto.Property propertyDto, L
}

//For multilingual properties need populate LocalizedValues collection and set value for requested language
if (propertyDto.Multilanguage ?? false)
if ((propertyDto.Multilanguage ?? false) && propertyDto.Values != null)
Copy link
Contributor

@vc-ci vc-ci May 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Change this condition so that it does not always evaluate to 'false'. rule

@yecli yecli requested a review from vc-ci May 29, 2020 13:44
@vc-ci
Copy link
Contributor

vc-ci commented Jun 2, 2020

SonarQube analysis reported 2 issues

  • MINOR 2 minor

Watch the comments in this conversation to review them.

1 extra issue

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MINOR CatalogConverter.cs#L311: Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. rule

@yecli yecli requested a review from akak1977 June 2, 2020 04:20
@akak1977 akak1977 merged commit f041686 into dev Jun 2, 2020
@yecli yecli deleted the feature/VP-2649-fix-critical-sonar-bugs branch June 2, 2020 13:42
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

Successfully merging this pull request may close these issues.

3 participants