Errors during Run Code Analysis with two cshtml-files containing Razor markup

Dear Support,

I am the latest version of SonarCloud.

During the Run Code Analysis of the build in with Azure DevOps I get the following errors:

##[error]ERROR: Failed to parse file:///C:/A/1/_work/102/s/RulesWebApplication/Website/Views/Details/ReportManagerPartialView.cshtml, line 87, Unclosed bracket

##[error]ERROR: Failed to parse file:///C:/A/1/_work/102/s/RulesWebApplication/Website/Views/Forms/FormMailBodyPartialView.cshtml, line 65, At-rule without name

Hereby the content of the lines of the specified cshtml-files:

ReportManagerPartialView.cshtml:

<a href="#" style=“padding-left:16px; display:@(Model.CanUsePowerBI ? “inline” : “none”)” id="@(htmlElementIdBtnPowerBI)"
title="@(TranslatorHelper.GetString(“Details.DetailsReportManagerPartialView.Anchor.PowerBI.Title”))">
Power BI

URL in SonarCloud:
https://sonarcloud.io/code?id=MavimAllProjects&selected=MavimAllProjects%3ARulesWebApplication%2FWebsite%2FViews%2FDetails%2FReportManagerPartialView.cshtml

FormMailBodyPartialView.cshtml:

@TranslatorHelper.GetString("Forms.FormMailBodyPartialView.Input.Caption")

URL in SonarCloud:
https://sonarcloud.io/code?id=MavimAllProjects&selected=MavimAllProjects%3ARulesWebApplication%2FWebsite%2FViews%2FForms%2FFormMailBodyPartialView.cshtml

Unfortunately, I cannot detect the errors.

Could you look into this issue?

With Kind Regards,

Thierry

Dear Support,

Could you give me a status update of this issue, please?

With Kind Regards,

Thierry

Dear Support,

Could you give me a status update of this issue, please?

With Kind Regards,

Thierry

Hi, @tkn .

I’m afraid I don’t have permissions to see the problem you are facing. Is it a public project?

Can you upload the logs of the analysis?

1 Like