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

Sonarcloud issues fixes #3499

Merged
merged 9 commits into from
Nov 3, 2023
Merged

Sonarcloud issues fixes #3499

merged 9 commits into from
Nov 3, 2023

Conversation

MichalKinas
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

What is the new behaviour?

Fixes most of issues reported in https://sonarcloud.io/project/issues?resolved=false&types=BUG&id=Alfresco_alfresco-content-app

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@MichalKinas MichalKinas force-pushed the fix-sonarcloud-issues branch from 307bd8a to 19594c4 Compare October 27, 2023 14:09
@@ -62,7 +62,7 @@ export class ToggleSharedComponent implements OnInit, OnDestroy {
this.selectionState = selectionState;

this.isShared =
(this.selectionState.first && this.selectionState.first.entry && (this.selectionState.first.entry as any).sharedByUser) ||
(this.selectionState?.first?.entry && (this.selectionState.first.entry as any).sharedByUser) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

this line can be reduced to just (this.selectionState?.first?.entry as any)?.sharedByUser
(no need to repeat this.selectionState.first.entry twice)

@MichalKinas MichalKinas force-pushed the fix-sonarcloud-issues branch from 19594c4 to b73a3f6 Compare October 30, 2023 10:51
@DenysVuika
Copy link
Contributor

One e2e constantly failing, probably affected by the changes

@MichalKinas MichalKinas force-pushed the fix-sonarcloud-issues branch from d441c9b to 87bd5fd Compare November 3, 2023 09:34
Copy link

sonarqubecloud bot commented Nov 3, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
3.1% 3.1% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@DenysVuika DenysVuika merged commit 69c00fc into develop Nov 3, 2023
28 of 29 checks passed
@DenysVuika DenysVuika deleted the fix-sonarcloud-issues branch November 3, 2023 10:43
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.

4 participants