I am running a .net framework 4.7 with Umbraco 8. I got to know from Sonarqube docs that now cshtml files are supported for Analyzing.
I am trying to integrate Sonarqube with my project but when I run it then it does not provide any issues in my code, I have also commented code, and written unused variables into it but it does not give a single issue with that. Can you please look into this and provide any feedback points:
SonarQube Version: 10.4.1
I am writing sample code for the reference (e.g. Accounts.cshtml):
/* var BillingContacts = JsonHelper.request("BillingContactName");
var PrimaryContacts = JsonHelper.request("PrimaryContactName"); */
var BillingContactID = JsonHelper.request("AccountName");
var PrimaryContactID = JsonHelper.request("TenantID");
var unusedVariable;
string query = @"
declare @Ids table ( id int )
declare @AccountID int
INSERT INTO [Accounts]
(
[AccountName]
,[TenantID]
,[BillingContactID]
VALUES
(
@AccountName
,@TenantID