-
Notifications
You must be signed in to change notification settings - Fork 79
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
[JAVA] CRJVM207 - 10 MILLIARDS - Customer data must have end-of-life information #170
base: main
Are you sure you want to change the base?
[JAVA] CRJVM207 - 10 MILLIARDS - Customer data must have end-of-life information #170
Conversation
java-plugin/src/main/java/fr/greencodeinitiative/java/checks/CookieWithoutExpirationRule.java
Show resolved
Hide resolved
if (visitorInFile.hasANewCookieWithoutMaxDate()) | ||
{ | ||
//if we found a cookie that maxDate is not initialized, we report issue | ||
reportIssue(tree, "Avoid not setting MaxAge"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message with a double negative is difficult to understand : please use a simple message like Giving a MaxAge is recommended
for (String variableName : newCookieVariableName ) | ||
{ | ||
if (!hasSetMaxAgeForCookiesVariableName.contains(variableName)) | ||
//si on n'a pas fait setMaxAge pour ces variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please write code comments in english. check others please. thx
java-plugin/src/main/java/fr/greencodeinitiative/java/checks/CookieWithoutExpirationRule.java
Show resolved
Hide resolved
import java.util.Collection; | ||
import java.util.Collections; | ||
|
||
class TestClass {// Noncompliant {{Avoid not setting MaxAge}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why message presnet on class and not on each line of code with a non compliance ? I think this is that we should have.
java-plugin/src/test/java/fr/greencodeinitiative/java/checks/CookieWithExpirationCheckTest.java
Show resolved
Hide resolved
Hi @saidmohamedali, thank you for this PR ... but I saw that you created and closed some 3 old PRs with same modifications (#150 / #168 / #169) related to issue #114. Why do you need to recreate PR ? You can modify your code in the same PR. |
Kudos, SonarCloud Quality Gate passed! |
This PR has been automatically marked as stale because it has no activity for 30 days. |
Hi @saidmohamedali, |
This PR has been automatically marked as stale because it has no activity for 30 days. |
Hi @jhertout, @glalloue, @utarwyn |
core team decision : we split the need => this PR is only for Cookie and rework implementation because of bad implementation (visitor inspecting too much code instead of construct, method invocation) |
This PR has been automatically marked as stale because it has no activity for 60 days. |
No description provided.