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

"A new year has begun" false positive #11169

Open
donnerpeter opened this issue Jan 7, 2025 · 0 comments
Open

"A new year has begun" false positive #11169

donnerpeter opened this issue Jan 7, 2025 · 0 comments

Comments

@donnerpeter
Copy link
Collaborator

Date: 2024-11-29 causes a warning suggesting using 2025.

Reported to IntelliJ as https://youtrack.jetbrains.com/issue/IJPL-174552. From the ticket:

This doesn't really make sense. A date is a date. It's not wrong to have dates in the past.

The IDE might address it by suppressing the warning completely or on some conditions, but the point still stands. Such usage of a date seems quite normal to me.

One could consider reducing the false positive rate. For example, dates at the beginning of the year are more likely to be used when typing a text in January than November dates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant