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

Sonar: Immediately return this expression instead of assigning it to the temporary variable #26583

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

qmonmert
Copy link
Contributor

@qmonmert qmonmert commented Jun 30, 2024

Related to #25231

Fix a lot of issues like:

image

Before
image


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@qmonmert qmonmert marked this pull request as ready for review June 30, 2024 15:47
@qmonmert
Copy link
Contributor Author

qmonmert commented Jul 1, 2024

@DanielFran can you merge this? I would like to see how many issues will be fixed

@mshima
Copy link
Member

mshima commented Jul 1, 2024

I think we should just ignore the sonar errors to test classes instead of adding so complicated conditions to template.

@qmonmert
Copy link
Contributor Author

qmonmert commented Jul 1, 2024

@mshima so we close this PR?

@DanielFran DanielFran merged commit 3889b4f into jhipster:main Jul 5, 2024
52 checks passed
@qmonmert
Copy link
Contributor Author

qmonmert commented Jul 5, 2024

@DanielFran strange, it doesn't fix issues :/ I think we can revert

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

3 participants