Scanning json files for latest enterprise sonarqube

Hey Hi,
We are using enterprise sonarqube.
I need to scan json files using sonar…
I have added sources and inclusions…
but upon scanning, the scan result in ui says no lines of code.
can you pls help on how to scan json files using sonar…
these json files are not CloudFormation templates written in JSON.
can you pls help, am i missing any property while scanning

Hey there.

SonarQube doesn’t support analyzing JSON – except in cases like you’ve identified (CloudFormation templates).

There have been community supported plugins the past (GitHub - racodond/sonar-json-plugin: SonarQube JSON Analyzer) but they are no longer maintained, provide minimal value, and mostly jack up the number of LoC that count towards your license.