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: This block of commented-out lines of code should be removed #26272

Merged
merged 5 commits into from
May 27, 2024

Conversation

qmonmert
Copy link
Contributor

@qmonmert qmonmert commented May 26, 2024

Should remove a lot of Sonar issues:


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 May 26, 2024 20:00
@qmonmert qmonmert requested review from mshima and DanielFran May 26, 2024 20:00
* Validate the id for MapsId, the ids must be same
* Uncomment the following line for assertion. However, please note that there is a known issue and uncommenting will fail the test.
* Please look at https://github.com/jhipster/generator-jhipster/issues/9100. You can modify this test as necessary.
* assertThat(test<%= entityClass %>.get<%= primaryKey.nameCapitalized %>()).isEqualTo(test<%= entityClass %>.get<%= mapsIdEntity %>().get<%= primaryKey.nameCapitalized %>());
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if the issue still applies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mshima I suggest that because VSCode complains with // and not with /* .... */

Before
image

After
image

qmonmert and others added 4 commits May 27, 2024 11:16
…tyPackage_/web/rest/_entityClass_ResourceIT.java.ejs

Co-authored-by: Marcelo Shima <[email protected]>
…tyPackage_/web/rest/_entityClass_ResourceIT.java.ejs

Co-authored-by: Marcelo Shima <[email protected]>
…tyPackage_/web/rest/_entityClass_ResourceIT.java.ejs

Co-authored-by: Marcelo Shima <[email protected]>
…tyPackage_/web/rest/_entityClass_ResourceIT.java.ejs

Co-authored-by: Marcelo Shima <[email protected]>
@qmonmert qmonmert requested a review from mshima May 27, 2024 17:34
@DanielFran DanielFran merged commit bb0e10d into jhipster:main May 27, 2024
52 checks passed
@qmonmert
Copy link
Contributor Author

Before
image

@qmonmert
Copy link
Contributor Author

@mshima @DanielFran it worked 🙂

image

@mraible mraible added this to the 8.5.0 milestone May 31, 2024
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