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

Fix critical code smell reported by SonnarCloud - 14.2.x (cherry-pick #818) #823

Merged
merged 6 commits into from Sep 17, 2021

Conversation

vainyksi
Copy link
Contributor

Fixed critical code smells:

  • String literals should not be duplicated
  • Class members annotated with "VisibleForTesting" should not be accessed from production code
  • Cognitive Complexity of methods should not be too high
  • Methods should not be empty

Won't do code smells:

cherry-picks #818

PeterSuna and others added 6 commits September 17, 2021 17:13
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
(cherry picked from commit f7e9d29)
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
(cherry picked from commit 4e40a51)
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
(cherry picked from commit df3f595)
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
(cherry picked from commit 0f226ca)
Signed-off-by: Michal Banik <michal.banik@pantheon.tech>
(cherry picked from commit 6d6949a)
Signed-off-by: Michal Banik <michal.banik@pantheon.tech>
(cherry picked from commit 468fbd5)
@sonarcloud
Copy link

sonarcloud bot commented Sep 17, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

95.0% 95.0% Coverage
0.0% 0.0% Duplication

@vainyksi vainyksi merged commit 4b66eb4 into 14.2.x Sep 17, 2021
@vainyksi vainyksi deleted the 14.2.x_fixCriticalCodeSmell branch September 17, 2021 15: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.

None yet

2 participants