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: 31 code smells #11042

Merged
merged 6 commits into from
Oct 7, 2024
Merged

Sonar: 31 code smells #11042

merged 6 commits into from
Oct 7, 2024

Conversation

qmonmert
Copy link
Contributor

@qmonmert qmonmert commented Oct 3, 2024

Fix #11041

@@ -497,15 +497,15 @@ void shouldNotDuplicateExistingProfileWithDifferentActivation() {
@Nested
class HandleAddDirectJavaDependency {

private final JHipsterProjectFolder projectFolder = projectFrom("src/test/resources/projects/empty-gradle");
private final JHipsterProjectFolder jhProjectFolder = projectFrom("src/test/resources/projects/empty-gradle");
Copy link
Collaborator

@DamnClin DamnClin Oct 5, 2024

Choose a reason for hiding this comment

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

I don't agree with this rule, I don't think it is relevant in Java

Copy link
Contributor

Choose a reason for hiding this comment

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

It don't have any issue with this rule, I think it highlights some naming clumsiness, but I don't agree with the new name which is not expressive enough.

Suggested change
private final JHipsterProjectFolder jhProjectFolder = projectFrom("src/test/resources/projects/empty-gradle");
private final JHipsterProjectFolder emptyGradleProjectFolder = projectFrom("src/test/resources/projects/empty-gradle");

@qmonmert qmonmert changed the title Rename projectFolder which hides the field declared at line Sonar: 31 code smells Oct 5, 2024
@murdos murdos merged commit 84ecfba into jhipster:main Oct 7, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sonar: 31 code smells
3 participants