Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-124

Track comments matching a regular expression

    Details

    • Type: Finding Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Message:
      The regular expression matches this comment.
    • List of parameters:
      Hide
      • Key: regularExpression
        • Description: The regular expression
        • Type: STRING
      • key: message
        • Description: The issue message
        • default: The regular expression matches this comment.
        • Type: STRING
      Show
      Key: regularExpression Description: The regular expression Type: STRING key: message Description: The issue message default: The regular expression matches this comment. Type: STRING
    • Default Severity:
      Major
    • Impact:
      Low
    • Likelihood:
      High
    • Template Rule:
      Yes
    • Legacy Key:
      comment-regular-expression, CommentRegularExpression, CommentRegularExpressionCheckPlSql
    • Targeted languages:
      C#, C++, Objective-C, VB.Net
    • Covered Languages:
      C, Cobol, Flex, Java, JavaScript, PL/I, PL/SQL, Python
    • Analysis Level:
      Syntactic Analysis
    • Common Rule:
      Yes

      Description

      This rule template can be used to create rules which will be triggered when a comment matches a given regular expression.
      For example, one can create a rule with the regular expression .REVIEW. to match all comment containing "REVIEW".

      Note that, in order to match REVIEW regardless of the case, the (?i) modifier should be prepended to the expression, as in (?i).REVIEW..

        Attachments

          Issue Links

          1.
          RPG RSPEC-2034 Language-Specification Active Unassigned
          2.
          JavaScript RSPEC-4295 Language-Specification Active Unassigned
          3.
          C-Family RSPEC-4355 Language-Specification Active Unassigned
          4.
          PL/SQL RSPEC-4393 Language-Specification Active Unassigned
          5.
          Python RSPEC-4401 Language-Specification Active Unassigned
          6.
          Java RSPEC-4616 Language-Specification Active Unassigned
          7.
          Cobol RSPEC-5051 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freddy.mallet Freddy Mallet (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: