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: sonar cloud smells #155

Merged
merged 2 commits into from
May 25, 2023
Merged

fix: sonar cloud smells #155

merged 2 commits into from
May 25, 2023

Conversation

NachoVazquez
Copy link
Contributor

@NachoVazquez NachoVazquez commented May 23, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

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

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

The Sonar cloud on the main branch reports six smells on the code.

The smells are about

  • replacing || operator with ??
  • returning this as the type of fluent API functions

What is the new behavior?

  • Logical Or operator (||) is replaced for coalescence operator (??)
  • We set this as the return type of fluent functions

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

https://sonarcloud.io/project/issues?resolved=false&id=ngworker_lumberjack

@nx-cloud
Copy link

nx-cloud bot commented May 23, 2023

☁️ Nx Cloud Report

Attention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here.

CI is running/has finished running commands for commit 21f3de6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

Copy link
Member

@LayZeeDK LayZeeDK left a comment

Choose a reason for hiding this comment

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

Related questions.

@sonarcloud
Copy link

sonarcloud bot commented May 24, 2023

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 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@NachoVazquez NachoVazquez added this pull request to the merge queue May 25, 2023
@NachoVazquez NachoVazquez removed this pull request from the merge queue due to a manual request May 25, 2023
@NachoVazquez NachoVazquez merged commit 158d1fc into main May 25, 2023
10 checks passed
@NachoVazquez NachoVazquez deleted the fix/sonar-smells branch May 25, 2023 10:21
NachoVazquez added a commit that referenced this pull request Jun 12, 2023
Please check if your PR fulfills the following requirements:

- [x] The commit message follows our guidelines: CONTRIBUTING.md#commit
- [ ] 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?

<!-- Please check the one that applies to this PR using "x". -->

```
[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
```

The Sonar cloud on the main branch reports six smells on the code.

The smells are about

- replacing || operator with ??
- returning this as the type of fluent API functions

- Logical Or operator (||) is replaced for coalescence operator (??)
- We set this as the return type of fluent functions

```
[ ] Yes
[x] No
```

https://sonarcloud.io/project/issues?resolved=false&id=ngworker_lumberjack
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