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

SystemClockUnawareDateRule - LocalDateTime.now() is not checked #89

Open
komasztania opened this issue Jun 30, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@komasztania
Copy link
Collaborator

komasztania commented Jun 30, 2023

Describe the bug

  • LocalDateTime.now() is not checked.
  • The description of the Rule should contain more details
  • please check also:
    • java.time.LocalTime
    • java.time.Clock
    • java.time.Instant
    • java.util.Calendar
    • java.util.GregorianCalendar
    • java.sql.Date

To Reproduce
Sample file attached: SampleClassLocalDate.gs

Expected behavior

  • description with more details
  • LocalDateTime.now() should be also highlighted

Screenshots
Screenshot 2023-06-30 at 15 54 35

Software Versions

  • SonarScanner Version: 4.7.0.2747
  • SonarQube Version: 8.9.10
  • Plugin Version: sonar-communitygosu-plugin-1.2.1.jar
@komasztania komasztania added the bug Something isn't working label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant