JustCode is incorrectly flagging some common JavaScript code as "JavaScript: unexpected end of line" when declaring an inline new object (as part of an MVC view). This option is controlled by JustCode User Options->Code Analysis -> Problems->JavaScript->Language Errors and the only way I know of to turn this off is by changing all language erros to be warnings or ingored entirely for JavaScript. I don't want to do this as I want legitimate errors to be flagged. An example is the following:
var url = '@Html.Raw(Url.Action("Forms", new { <- error flagged here
numberOfWeeks = ViewBag.NumberOfWeeks,
columnIndex = "colIndex",
fiscalYear = "fy",
formType = ViewBag.FormType,
orgType = ViewBag.OrgType,
workflowStatus = ViewBag.WorkflowStatus,
orgName = ViewBag.OrgName,
ParentLevel = Model.OrgLevel - 1,// ViewBag.ParentLevel,
StartMonth = ViewBag.StartMonthString,
EndMonth = ViewBag.EndMonthString
}
))'; <- error flagged here
Please let me know if there is a workaround for this or if this has been fixed (please proved release number).
Thanks