Skip to content

Conversation

@max-208
Copy link
Contributor

@max-208 max-208 commented Aug 19, 2024

created in mostly during the ecocode challenge 2024, this rule aims to avoid doing sql queries and not using selected columns. rule specification here

Copy link
Member

@dedece35 dedece35 left a comment

Choose a reason for hiding this comment

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

Hello,

thank you for your PR !!!
some feedbacks :

  • could you rename each test java file (inside "src/test/files") with a functional name ? like that a developer knows the content and the purpose of each class. If you can add javadoc for more explanations before de the class name, please ?
  • What is the behaviour with a use case like "SELECT * FROM toto" ? can you add this use case test, please ?

Copy link
Member

@dedece35 dedece35 left a comment

Choose a reason for hiding this comment

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

I don't see a PR inside "ecoCode-java-test-project" repository with your test classes ... can you do it please ?

please check documentation https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/starter-pack.md#implement-a-new-rule and specifically the "DoD" part to check all mandatories developments are done, please.

@dedece35 dedece35 added 🗃️ rule rule improvment or rule development or bug 🏆 challenge 🏆 Work done during the Green Code Challenge labels Sep 6, 2024
@max-208
Copy link
Contributor Author

max-208 commented Sep 9, 2024

here is the pr in ecocode-java-test-project

@max-208 max-208 requested a review from dedece35 September 11, 2024 07:32
@github-actions github-actions bot removed the stale label Dec 14, 2024
@github-actions
Copy link

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@github-actions github-actions bot added the stale label Jan 14, 2025
@dedece35
Copy link
Member

Hi @max-208,
sorry for my very late answer, could you correct the remaining conflicts to check again this PR.

Thank you, a lot.
David

@github-actions
Copy link

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@github-actions github-actions bot added the stale label Mar 18, 2025
Copy link

@MP-Aubay MP-Aubay left a comment

Choose a reason for hiding this comment

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

  • Can you update CHANGELOG.md
  • Two test case are not flag using test-projects and real Sonar (MultipleQueries & UseMethod)

@max-208
Copy link
Contributor Author

max-208 commented May 20, 2025

@MP-Aubay done

@github-actions github-actions bot removed the stale label May 21, 2025
@max-208 max-208 requested a review from MP-Aubay May 21, 2025 06:48
@rducasse
Copy link

  • Can you update CHANGELOG.md
  • Two test case are not flag using test-projects and real Sonar (MultipleQueries & UseMethod)

The 2 tests cases are still not flagged in test-projects

OK for the other changes

@max-208 max-208 changed the title [CHALLENGE24][EC1044] : Use every column queried [CHALLENGE24][GCI95] : Use every column queried May 21, 2025
@max-208 max-208 changed the title [CHALLENGE24][GCI95] : Use every column queried [CHALLENGE24][GCI95][S.T.E.P] : Use every column queried May 21, 2025
@github-actions
Copy link

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@github-actions github-actions bot added the stale label Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗃️ rule rule improvment or rule development or bug 🏆 challenge 🏆 Work done during the Green Code Challenge 🔥 in progress 🔥 🚀 enhancement New feature or request stale 👀 👀 waiting commiter 👀 👀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants