Page MenuHomePhabricator

SonarQube fails to parse JSON files in core
Open, Needs TriagePublic

Description

On January 22, the number of SonarQube issues in core increased from 750 to 3529:

image.png (1,352×714 px, 35 KB)

https://sonarcloud.io/project/issues?createdAfter=2026-01-21&createdBefore=2026-01-23&issueStatuses=OPEN%2CCONFIRMED&id=mediawiki-core lists the new issues. It looks like they're occurring because SonarQube fails to parse JSON files, and according to the details page, they were introduced on January 22, 2026 at 12:26 PM. I searched through related commits around that time, but I didn't find anything that looks like it could've caused it.

In https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1225586, which was merged 2 hours before the issues started to occur, the bot did not comment or vote a single time for some reason... but I don't see why a change like this could cause SonarQube to fail to parse all JSON files.