Uploaded image for project: 'SonarHTML'
  1. SonarHTML
  2. SONARHTML-129

Add support for Razor syntax in .cshtml files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None

      Description

      Currently, we are able to parse naively .cshtml files, but without any support for the razor syntax. TextNode will be created for the code containing this syntax.
      This imprecision can introduce FP/FN in rules:

      • UnclosedTagCheck, see SONARHTML-119. We are not running this rule any more on .cshtml files to not report too many FP.
      • TODO: others rules impacted?

      Note that supporting this syntax is not trivial, it requires a big effort. We should make sure that it is worth and could improve many rules before starting it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              quentin.jaquier Quentin Jaquier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: