Uploaded image for project: 'SonarPLSQL'
  1. SonarPLSQL
  2. SONARPLSQL-591

FP on plsql:MultiLineCommentFormatCheck on multi-line hints

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 3.5
    • Component/s: Rules
    • Labels:

      Description

      The following code:

      SELECT /*+ no_parallel(t1) no_parallel(t2) no_parallel_index(t1) no_parallel_index(t2)
      ordered use_nl(t2) index(t1 t1_abc) index(t2 t2_abc) */ COUNT(*)
      

      generates an issue with message "Each line in a multi-line comment should start with a '*' character". However, the code between /* and */ is not a comment - it is a hint to the Oracle engine.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.gumowski Michael Gumowski
              Reporter:
              yves.duboispelerin Yves Dubois-Pèlerin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: