Not able to scan JSON file in SonarQube

Hello Team,

Hope you are doing well!!

We are using SonarQube Version 9.2.4, and Sonar-Scanner 4.6.2.

We have a PHP based project & in that JSON files are also present, we have executed SonarQube for our project but JSON files are not scanned by SonarQube.

Looking for your cooperation and support.

Thanks & Regards,
Huzaifa Siddiqui.

Hey there.

SonarQube only scans JSON files in the context of analyzing CloudFormation templates – it does not otherwise scan JSON files.

Some community-supported plugins exist for just analyzing JSON… but they aren’t very full-featured, and won’t provide any rules specific to Azure ADF (just making sure the JSON is parsed correctly, whitespace used instead of tabs…)