SonarQube CRITICAL CODE_SMELL: Define a constant instead of duplicating this literal "date_format:Y-m-d|after:1 #128

Closed
opened 2026-05-29 12:44:56 -05:00 by forgejo-actions · 1 comment

SonarQube issue detected.

SonarQube key: 5c491a71-abc6-4dc8-8af0-f60a240e2744
Severity: CRITICAL
Type: CODE_SMELL
Location: myvideogamelist:app/Http/Controllers/GameListController.php:93
Message: Define a constant instead of duplicating this literal "date_format:Y-m-d|after:1970-01-01 00:00:00|nullable" 4 times.

https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=5c491a71-abc6-4dc8-8af0-f60a240e2744&open=5c491a71-abc6-4dc8-8af0-f60a240e2744

SonarQube issue detected. **SonarQube key:** `5c491a71-abc6-4dc8-8af0-f60a240e2744` **Severity:** `CRITICAL` **Type:** `CODE_SMELL` **Location:** `myvideogamelist:app/Http/Controllers/GameListController.php:93` **Message:** Define a constant instead of duplicating this literal "date_format:Y-m-d|after:1970-01-01 00:00:00|nullable" 4 times. https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=5c491a71-abc6-4dc8-8af0-f60a240e2744&open=5c491a71-abc6-4dc8-8af0-f60a240e2744 <!-- sonarqube:issue:5c491a71-abc6-4dc8-8af0-f60a240e2744 -->

SonarQube no longer reports issue 5c491a71-abc6-4dc8-8af0-f60a240e2744 as open. Closing automatically.

SonarQube no longer reports issue `5c491a71-abc6-4dc8-8af0-f60a240e2744` as open. Closing automatically.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MyVideoGameList/myvideogamelist.com#128
No description provided.