-
Notifications
You must be signed in to change notification settings - Fork 10
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
[GSW-2032] SonarQube code quality #591
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
tfrg
force-pushed
the
GSW-2032-sonarqube-code-quality
branch
from
December 17, 2024 08:37
d8e7850
to
b416aab
Compare
tfrg
force-pushed
the
GSW-2032-sonarqube-code-quality
branch
from
December 18, 2024 10:06
4382066
to
c8e7c81
Compare
Refactor this getter to return a value. Getters and setters should access the expected fields typescript:S4275 Software qualities impacted: Reliability
Provide a compare function to avoid sorting elements alphabetically. "Array.prototype.sort()" and "Array.prototype.toSorted()" should use a compare function typescript:S2871 Software qualities impacted: Reliability
Fix SonarQube issue by removing direct .sort() comparison in test assertions
Remove this duplicated type or replace with another one. Union and intersection types should not include duplicated constituents typescript:S4621 Software qualities impacted: Maintainability
Refactor this redundant 'await' on a non-promise. "await" should only be used with promises typescript:S4123 Software qualities impacted: Maintainability
Move this "default" clause to the end of this "switch" statement. "default" clauses should be last typescript:S4524 Software qualities impacted: Maintainability
Refactor this function to reduce its Cognitive Complexity from 60 to the 15 allowed. Cognitive Complexity of functions should not be too high typescript:S3776 Software qualities impacted: Maintainability
Refactor this function to reduce its Cognitive Complexity from 60 to the 15 allowed. Cognitive Complexity of functions should not be too high typescript:S3776 Software qualities impacted: Maintainability
Refactor this function to reduce its Cognitive Complexity from 60 to the 15 allowed. Cognitive Complexity of functions should not be too high typescript:S3776 Software qualities impacted: Maintainability
tfrg
force-pushed
the
GSW-2032-sonarqube-code-quality
branch
from
December 23, 2024 01:23
4c5e499
to
6854413
Compare
Make sure not using "noopener" is safe here. Authorizing an opened window to access back to the originating window is security-sensitivetypescript:S5148
… operator Extract this nested ternary operation into an independent statement. Ternary operators should not be nested typescript:S3358 Software qualities impacted: Maintainability
Quality Gate passedIssues Measures |
notJoon
approved these changes
Dec 23, 2024
jinoosss
reviewed
Dec 24, 2024
jinoosss
approved these changes
Dec 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes all code quality issues identified by SonarQube analytics in the current project.
Changes
Details